diff --git a/src/js/controllers/index.js b/src/js/controllers/index.js index e59f2214c..04f9d7265 100644 --- a/src/js/controllers/index.js +++ b/src/js/controllers/index.js @@ -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() { diff --git a/src/js/controllers/preferencesInformation.js b/src/js/controllers/preferencesInformation.js index 22bdaeabe..788f7dfbc 100644 --- a/src/js/controllers/preferencesInformation.js +++ b/src/js/controllers/preferencesInformation.js @@ -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');