|
|
|
@ -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()) |
|
|
|
|