1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Merge pull request #4633 from MetaMask/i4580-import-account-errors

Show all errors on account creation screen.
This commit is contained in:
Alexander Tseung 2018-07-03 07:43:40 -10:00 committed by GitHub
commit 3fd5af636f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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