Skip to content

Commit ae0569b

Browse files
author
Angel Mortega
committed
Fixed Bug in custom amount screen where type of address was not changing.
1 parent c2c8ddc commit ae0569b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/js/controllers/custom-amount.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
var coinsFromSatoshis = 0;
4949
var listeningAddressLegacy = '';
5050
var satoshisRequested = 0;
51+
var bchAddresses = {};
5152

5253
function _showErrorAndBack(title, msg) {
5354
popupService.showAlert(title, msg, function() {
@@ -80,8 +81,7 @@
8081
}
8182

8283
$scope.bchAddressType = 'cashaddr';
83-
var bchAddresses = {};
84-
84+
8585
if ($scope.wallet.coin == 'bch') {
8686
bchAddresses = bitcoinCashJsService.translateAddresses(addr);
8787
vm.displayAddress = bchAddresses[$scope.bchAddressType];

0 commit comments

Comments
 (0)