Merge pull request #2266 from isocolsky/fix/delete
When deleting a wallet, do not store all other wallets
This commit is contained in:
commit
ea189fae7e
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) {
|
||||
if (err) return cb(err);
|
||||
self.emitAndKeepAlive('walletDeleted', walletId);
|
||||
self.store(null, cb);
|
||||
self.store({
|
||||
noWallets: true
|
||||
}, cb);
|
||||
});
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue