refactor clear history method call

This commit is contained in:
Javier 2015-10-30 12:47:37 -03:00
commit 7c21793236
3 changed files with 18 additions and 16 deletions

View file

@ -95,8 +95,13 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
};
this.clearTransactionHistory = function() {
storageService.removeTxHistory(c.walletId, function() {
return;
storageService.removeTxHistory(c.walletId, function(err) {
if (err) return $log.err(err);
$timeout(function() {
$scope.$emit('Local/ClearHistory');
go.walletHome();
}, 100);
});
}
});