From d28b345e65b3afb2d2ebf07587f5706c299db960 Mon Sep 17 00:00:00 2001 From: Javier Date: Fri, 30 Oct 2015 14:46:46 -0300 Subject: [PATCH] fix return and comment --- src/js/controllers/index.js | 2 +- src/js/controllers/preferencesInformation.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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');