Merge pull request #5229 from whymarrh/fix-confirm-seed-words

Clear old seed words when importing new seed words
feature/default_network_editable
Dan Finlay 6 years ago committed by GitHub
commit 7fe638fec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      ui/app/actions.js

@ -413,7 +413,12 @@ function createNewVaultAndRestore (password, seed) {
log.debug(`background.createNewVaultAndRestore`)
return new Promise((resolve, reject) => {
background.createNewVaultAndRestore(password, seed, err => {
background.clearSeedWordCache((err) => {
if (err) {
return reject(err)
}
background.createNewVaultAndRestore(password, seed, (err) => {
if (err) {
return reject(err)
}
@ -421,6 +426,7 @@ function createNewVaultAndRestore (password, seed) {
resolve()
})
})
})
.then(() => dispatch(actions.unMarkPasswordForgotten()))
.then(() => {
dispatch(actions.showAccountsPage())

Loading…
Cancel
Save