show 0 bch when usd selected in amount screen
This commit is contained in:
parent
6bacf220fe
commit
d56b703afa
1 changed files with 5 additions and 1 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue