Merge pull request #2266 from isocolsky/fix/delete

When deleting a wallet, do not store all other wallets
This commit is contained in:
Matias Alejo Garcia 2015-01-05 12:15:24 -03:00
commit ea189fae7e

View file

@ -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);
});
});
};