Merge pull request #4716 from MetaMask/i4663-clearErrorMessages

fixes #4663 - Clear Error Messages when Importing Accounts are Successful
feature/default_network_editable
Dan J Miller 6 years ago committed by GitHub
commit a049627752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      ui/app/components/pages/create-account/import-account/json.js
  2. 1
      ui/app/components/pages/create-account/import-account/private-key.js

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

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

Loading…
Cancel
Save