From b7dda8b6cabe6b30be43a9526c51893bab12f1e3 Mon Sep 17 00:00:00 2001 From: Brendon Duncan Date: Mon, 3 Sep 2018 20:17:46 +1200 Subject: [PATCH] Currency in send max button now updates with currency change. --- src/js/controllers/amount.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/amount.js b/src/js/controllers/amount.js index e814bc92f..60912e42b 100644 --- a/src/js/controllers/amount.js +++ b/src/js/controllers/amount.js @@ -620,7 +620,6 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory, availableUnits[altUnitIndex].shortName = newAltCurrency.isoCode; fiatCode = newAltCurrency.isoCode; updateAvailableFundsStringIfNeeded(); - updateMaximumButtonIfNeeded(); updateUnitUI(); close(); }); @@ -641,6 +640,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory, } }); } + updateMaximumButtonIfNeeded(); } } @@ -681,6 +681,7 @@ function amountController(configService, $filter, gettextCatalog, $ionicHistory, } function updateMaximumButtonIfNeeded() { + console.log('sendmax updateMaximumButtonIfNeeded()'); if (vm.showSendMaxButton || vm.showSendLimitMaxButton) { transactionSendableAmount.fiat = ''; vm.sendableFunds = transactionSendableAmount.crypto;