Logout for private key imports
This commit is contained in:
parent
87becaf5c0
commit
cab0097d46
|
@ -115,9 +115,10 @@ export function lockWallet() {
|
||||||
export function forgetWallet() {
|
export function forgetWallet() {
|
||||||
localStorage.removeItem('walletIndex');
|
localStorage.removeItem('walletIndex');
|
||||||
localStorage.removeItem('walletCount');
|
localStorage.removeItem('walletCount');
|
||||||
|
localStorage.removeItem('walletPrivateKeyImports');
|
||||||
localStorage.removeItem('locked');
|
localStorage.removeItem('locked');
|
||||||
localStorage.removeItem('unlocked');
|
localStorage.removeItem('unlocked');
|
||||||
sessionStorage.removeItem('unlocked');
|
sessionStorage.removeItem('unlocked');
|
||||||
unlockedMnemonicAndSeed = { mnemonic: null, seed: null };
|
unlockedMnemonicAndSeed = { mnemonic: null, seed: null, importsEncryptionKey: null };
|
||||||
walletSeedChanged.emit('change', unlockedMnemonicAndSeed);
|
walletSeedChanged.emit('change', unlockedMnemonicAndSeed);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue