Clear old seed when mnemonic is changed

This commit is contained in:
Ian Coleman
2017-08-16 10:43:09 +10:00
parent 47b64d3ee1
commit ed6d9d3905
2 changed files with 39 additions and 0 deletions
+4
View File
@@ -175,6 +175,10 @@
function delayedPhraseChanged() {
hideValidationError();
seed = null;
bip32RootKey = null;
bip32ExtendedKey = null;
clearAddressesList();
showPending();
if (phraseChangeTimeoutEvent != null) {
clearTimeout(phraseChangeTimeoutEvent);