1
0
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:
Dan 2018-06-21 15:53:26 -02:30
parent 75581ceebe
commit 03f17d910a
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ class JsonImportSubview extends Component {
setSelectedAddress(firstAddress)
}
})
.catch(err => displayWarning(err.message || err))
.catch(err => err && displayWarning(err.message || err))
}
}

View File

@ -104,5 +104,5 @@ PrivateKeyImportView.prototype.createNewKeychain = function () {
setSelectedAddress(firstAddress)
}
})
.catch(err => displayWarning(err.message || err))
.catch(err => err && displayWarning(err.message || err))
}