From d56b703afabc7485e5c8620585b3dc37c2fab398 Mon Sep 17 00:00:00 2001 From: Kadir Sekha Date: Wed, 27 Dec 2017 21:38:39 +0000 Subject: [PATCH] show 0 bch when usd selected in amount screen --- src/js/controllers/amount.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/amount.js b/src/js/controllers/amount.js index b0ccda6b5..2bd562405 100644 --- a/src/js/controllers/amount.js +++ b/src/js/controllers/amount.js @@ -119,7 +119,6 @@ angular.module('copayApp.controllers').controller('amountController', function($ _id = data.stateParams.id; // Optional (BitPay Card ID or Wallet ID) $scope.nextStep = data.stateParams.nextStep; - setAvailableUnits(); updateUnitUI(); @@ -236,6 +235,11 @@ angular.module('copayApp.controllers').controller('amountController', function($ }; $scope.changeUnit = function() { + + if ($scope.alternativeAmount == 0) { + $scope.alternativeAmount = null; + } + if (fixedUnit) return; unitIndex++;