mirror of https://github.com/BTCPrivate/copay.git
fix return and comment
This commit is contained in:
parent
7254da8ae2
commit
d28b345e65
|
@ -1004,13 +1004,13 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
|
||||
};
|
||||
|
||||
// UX event handlers
|
||||
$rootScope.$on('Local/ClearHistory', function(event) {
|
||||
$log.debug('The wallet transaction history has been deleted');
|
||||
self.txHistory = [];
|
||||
self.updateHistory();
|
||||
});
|
||||
|
||||
// UX event handlers
|
||||
$rootScope.$on('Local/ColorUpdated', function(event) {
|
||||
self.updateColor();
|
||||
$timeout(function() {
|
||||
|
|
|
@ -96,7 +96,10 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
|
|||
|
||||
this.clearTransactionHistory = function() {
|
||||
storageService.removeTxHistory(c.walletId, function(err) {
|
||||
if (err) return $log.err(err);
|
||||
if (err) {
|
||||
$log.err(err);
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.$emit('Local/ClearHistory');
|
||||
|
||||
|
|
Loading…
Reference in New Issue