diff --git a/src/js/controllers/tab-receive.js b/src/js/controllers/tab-receive.js index 031def614..08b026fb5 100644 --- a/src/js/controllers/tab-receive.js +++ b/src/js/controllers/tab-receive.js @@ -3,7 +3,7 @@ angular.module('copayApp.controllers').controller('tabReceiveController', function($rootScope, $scope, $timeout, $log, $ionicModal, $state, $ionicHistory, $ionicPopover, storageService, platformInfo, walletService, profileService, configService, lodash, gettextCatalog, popupService, bwcError, bitcoinCashJsService) { var listeners = []; - $scope.bchAddressType = 'cashaddr'; + $scope.bchAddressType = { type: 'cashaddr' }; var bchAddresses = {}; $scope.isCordova = platformInfo.isCordova; @@ -30,7 +30,7 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi if ($scope.wallet.coin == 'bch') { bchAddresses = bitcoinCashJsService.translateAddresses(addr); - $scope.addr = bchAddresses[$scope.bchAddressType]; + $scope.addr = bchAddresses[$scope.bchAddressType.type]; } else { $scope.addr = addr; } @@ -42,8 +42,8 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi }; $scope.displayAddress = function(type) { - $scope.bchAddressType = type; - $scope.addr = bchAddresses[$scope.bchAddressType]; + $scope.bchAddressType.type = type; + $scope.addr = bchAddresses[$scope.bchAddressType.type]; } $scope.goCopayers = function() { diff --git a/www/views/tab-receive.html b/www/views/tab-receive.html index f9fd9f094..ebc98a3cb 100644 --- a/www/views/tab-receive.html +++ b/www/views/tab-receive.html @@ -31,10 +31,9 @@


-
+
-
- -
-
- -
-
- -
+
+
+
+