diff --git a/src/js/controllers/tab-receive.js b/src/js/controllers/tab-receive.js index 1eef60954..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,6 +249,10 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi $scope.setAddress(); }; + $scope.hidePaymentScreen = function() { + $scope.showingPaymentReceived = false; + }; + $scope.showWalletSelector = function() { if ($scope.singleWallet) return; $scope.walletSelectorTitle = gettextCatalog.getString('Select a wallet'); diff --git a/www/views/tab-receive.html b/www/views/tab-receive.html index d15088e47..51f671cee 100644 --- a/www/views/tab-receive.html +++ b/www/views/tab-receive.html @@ -54,7 +54,7 @@ -