mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-22 08:58:55 +00:00
Handle Ledger Error with Non-U2F Browsers (#882)
This commit is contained in:
parent
a58097eeaa
commit
81beab8bc0
@ -155,11 +155,11 @@ class LedgerNanoSDecryptClass extends Component<Props, State> {
|
||||
});
|
||||
})
|
||||
.catch(err => {
|
||||
if (err.metaData && err.metaData.code === 5) {
|
||||
if (err && err.metaData && err.metaData.code === 5) {
|
||||
this.showTip();
|
||||
}
|
||||
this.setState({
|
||||
error: err.metaData ? err.metaData.type : err,
|
||||
error: err && err.metaData ? err.metaData.type : err.toString(),
|
||||
isLoading: false
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user