From ee4d03f60e82aadb92622f192c15bbc6891eef42 Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 9 Nov 2015 09:47:18 -0300 Subject: [PATCH] fix reference to remove transaction history --- src/js/services/profileService.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 0170aebfe..74c4b5343 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -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); }); });