do not store wallets on delete

This commit is contained in:
Ivan Socolsky 2015-01-05 11:31:25 -03:00
parent 598dc7bc0e
commit 029071e495
1 changed files with 3 additions and 2 deletions

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