mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Check that error is defined in import-account error catch.
This commit is contained in:
parent
75581ceebe
commit
03f17d910a
@ -114,7 +114,7 @@ class JsonImportSubview extends Component {
|
||||
setSelectedAddress(firstAddress)
|
||||
}
|
||||
})
|
||||
.catch(err => displayWarning(err.message || err))
|
||||
.catch(err => err && displayWarning(err.message || err))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,5 +104,5 @@ PrivateKeyImportView.prototype.createNewKeychain = function () {
|
||||
setSelectedAddress(firstAddress)
|
||||
}
|
||||
})
|
||||
.catch(err => displayWarning(err.message || err))
|
||||
.catch(err => err && displayWarning(err.message || err))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user