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

Merge pull request #4716 from MetaMask/i4663-clearErrorMessages

fixes #4663 - Clear Error Messages when Importing Accounts are Successful
This commit is contained in:
Dan J Miller 2018-07-03 16:03:55 -02:30 committed by GitHub
commit a049627752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,7 @@ class JsonImportSubview extends Component {
.then(({ selectedAddress }) => { .then(({ selectedAddress }) => {
if (selectedAddress) { if (selectedAddress) {
history.push(DEFAULT_ROUTE) history.push(DEFAULT_ROUTE)
displayWarning(null)
} else { } else {
displayWarning('Error importing account.') displayWarning('Error importing account.')
setSelectedAddress(firstAddress) setSelectedAddress(firstAddress)

View File

@ -99,6 +99,7 @@ PrivateKeyImportView.prototype.createNewKeychain = function () {
.then(({ selectedAddress }) => { .then(({ selectedAddress }) => {
if (selectedAddress) { if (selectedAddress) {
history.push(DEFAULT_ROUTE) history.push(DEFAULT_ROUTE)
displayWarning(null)
} else { } else {
displayWarning('Error importing account.') displayWarning('Error importing account.')
setSelectedAddress(firstAddress) setSelectedAddress(firstAddress)