diff --git a/src/js/controllers/walletDetails.js b/src/js/controllers/walletDetails.js index bfe7b6730..4422a5d22 100644 --- a/src/js/controllers/walletDetails.js +++ b/src/js/controllers/walletDetails.js @@ -176,7 +176,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun } $scope.hideToggle = function() { - profileService.setHideBalanceFlag(wallet.credentials.walletId, function(err) { + profileService.toggleHideBalanceFlag(wallet.credentials.walletId, function(err) { if (err) $log.error(err); }); } diff --git a/src/js/services/profileService.js b/src/js/services/profileService.js index 9397962d4..1d6e5ffdb 100644 --- a/src/js/services/profileService.js +++ b/src/js/services/profileService.js @@ -738,7 +738,7 @@ angular.module('copayApp.services') }, 'createdOn']); }; - root.setHideBalanceFlag = function(walletId) { + root.toggleHideBalanceFlag = function(walletId, cb) { root.wallet[walletId].balanceHidden = !root.wallet[walletId].balanceHidden; storageService.setHideBalanceFlag(walletId, root.wallet[walletId].balanceHidden.toString(), cb); }