diff --git a/src/js/controllers/walletDetails.js b/src/js/controllers/walletDetails.js index a137077b3..1c1af142e 100644 --- a/src/js/controllers/walletDetails.js +++ b/src/js/controllers/walletDetails.js @@ -270,8 +270,8 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun function refreshAmountSection(scrollPos) { $scope.showBalanceButton = false; - if ($scope.wallet.status) { - $scope.showBalanceButton = ($scope.wallet.status.totalBalanceSat != $scope.wallet.status.spendableAmount); + if ($scope.status) { + $scope.showBalanceButton = ($scope.status.totalBalanceSat != $scope.status.spendableAmount); } if (!$scope.amountIsCollapsible) { var t = ($scope.showBalanceButton ? 15 : 45); @@ -352,7 +352,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun listeners = [ $rootScope.$on('bwsEvent', function(e, walletId) { - if (walletId == $scope.wallet.id && e.type!='NewAddress') + if (walletId == $scope.wallet.id && e.type != 'NewAddress') $scope.updateAll(); }), $rootScope.$on('Local/TxAction', function(e, walletId) {