mirror of https://github.com/BTCPrivate/copay.git
do not store wallets on delete
This commit is contained in:
parent
598dc7bc0e
commit
029071e495
|
@ -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…
Reference in New Issue