do not store wallets on delete
This commit is contained in:
parent
598dc7bc0e
commit
029071e495
1 changed files with 3 additions and 2 deletions
|
|
@ -218,9 +218,10 @@ Identity.prototype.deleteWallet = function(walletId, cb) {
|
||||||
self.storage.removeItem(Wallet.getStorageKey(walletId), function(err) {
|
self.storage.removeItem(Wallet.getStorageKey(walletId), function(err) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
self.emitAndKeepAlive('walletDeleted', walletId);
|
self.emitAndKeepAlive('walletDeleted', walletId);
|
||||||
self.store(null, cb);
|
self.store({
|
||||||
|
noWallets: true
|
||||||
|
}, cb);
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue