Improvement - 288 - Receive screen post check mark display: When a new wallet is chosen, QR does not display, previous payment received checkmark persists

This commit is contained in:
Jean-Baptiste Dominguez 2018-04-25 17:52:15 +09:00
commit 5ecfc4a949

View file

@ -237,6 +237,12 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
$scope.protocolHandler = walletService.getProtocolHandler($scope.wallet);
}
$scope.$watch('showWallets' , function () {
if ($scope.showingPaymentReceived) {
$scope.showingPaymentReceived = false;
}
});
$scope.onWalletSelect = function(wallet) {
$scope.wallet = wallet;
setProtocolHandler();