Bug: Wallet not switching Currency
This commit is contained in:
parent
52feb05d5d
commit
030f595132
1 changed files with 3 additions and 0 deletions
|
|
@ -257,6 +257,8 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
|
||||
if ($scope.alternativeAmount == 0) {
|
||||
$scope.alternativeAmount = null;
|
||||
} else {
|
||||
$scope.amountModel.amount = parseFloat($scope.alternativeAmount.replace(/[^0-9-.]/g, ''));
|
||||
}
|
||||
|
||||
if (fixedUnit) return;
|
||||
|
|
@ -267,6 +269,7 @@ angular.module('copayApp.controllers').controller('amountController', function($
|
|||
}
|
||||
|
||||
if (availableUnits[unitIndex].isFiat) {
|
||||
$scope.amountModel.amount = parseFloat($scope.amountModel.amount).toFixed(2);
|
||||
altUnitIndex = altUnitIndex == 0 && availableUnits.length > 2 ? 1 : 0;
|
||||
} else {
|
||||
altUnitIndex = lodash.findIndex(availableUnits, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue