refactor clear history method call
This commit is contained in:
parent
c20cccedc2
commit
7c21793236
3 changed files with 18 additions and 16 deletions
|
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue