diff --git a/src/js/controllers/tab-receive.js b/src/js/controllers/tab-receive.js index fa5237090..95f9a6610 100644 --- a/src/js/controllers/tab-receive.js +++ b/src/js/controllers/tab-receive.js @@ -126,8 +126,9 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi } } $scope.paymentReceivedCoin = $scope.wallet.coin; - $scope.showingPaymentReceived = true; - $scope.$apply(); + $scope.$apply(function () { + $scope.showingPaymentReceived = true; + }); } } @@ -248,8 +249,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi $scope.setAddress(); }; - $scope.togglePaymentScreen = function() { - $scope.showingPaymentReceived = !$scope.showingPaymentReceived; + $scope.hidePaymentScreen = function() { + $scope.showingPaymentReceived = false; }; $scope.showWalletSelector = function() { diff --git a/www/views/tab-receive.html b/www/views/tab-receive.html index 4098c69b3..51f671cee 100644 --- a/www/views/tab-receive.html +++ b/www/views/tab-receive.html @@ -54,7 +54,7 @@ -