mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-30 12:18:09 +00:00
handle NotReadableError
This commit is contained in:
parent
48c0b2afce
commit
c7f4796191
@ -108,7 +108,8 @@ class QrModal extends React.Component<Props, State> {
|
|||||||
this.props.onError(err);
|
this.props.onError(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err.name === 'NotAllowedError' || err.name === 'PermissionDeniedError') {
|
if (err.name === 'NotAllowedError' || err.name === 'PermissionDeniedError'
|
||||||
|
|| err.name === 'NotReadableError' || err.name === 'TrackStartError') {
|
||||||
this.setState({
|
this.setState({
|
||||||
error: 'Permission to access the camera was denied.',
|
error: 'Permission to access the camera was denied.',
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user