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…
Reference in New Issue