fix return and comment

This commit is contained in:
Javier 2015-10-30 14:46:46 -03:00
parent 7254da8ae2
commit d28b345e65
2 changed files with 5 additions and 2 deletions

View File

@ -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() {

View File

@ -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');