Merge pull request #3413 from tanojaja/fix/remove-tx-history

fix reference to remove transaction history
This commit is contained in:
Matias Alejo Garcia 2015-11-09 10:00:48 -03:00
commit 95f3adf505
1 changed files with 6 additions and 2 deletions

View File

@ -311,7 +311,7 @@ angular.module('copayApp.services')
walletId: walletId
});
delete root.walletClients[walletId];
delete root.walletClients[walletId];
root.focusedClient = null;
storageService.clearLastAddress(walletId, function(err) {
@ -326,6 +326,10 @@ angular.module('copayApp.services')
if (err) $log.warn(err);
});
storageService.removeTxHistory(walletId, function(err) {
if (err) $log.warn(err);
});
$timeout(function() {
root.setWalletClients();
root.setAndStoreFocus(null, function() {
@ -361,7 +365,7 @@ angular.module('copayApp.services')
root.setWalletClients();
root.setAndStoreFocus(walletId, function() {
storageService.storeProfile(root.profile, function(err){
storageService.storeProfile(root.profile, function(err) {
return cb(err, walletId);
});
});