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:
commit
a049627752
@ -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…
Reference in New Issue
Block a user