fix value sent to form

This commit is contained in:
Javier 2016-08-08 11:07:37 -03:00
parent e37cce06c5
commit 18c444c506
1 changed files with 3 additions and 3 deletions

View File

@ -149,10 +149,10 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
var alternativeAmount;
if ($scope.showAlternativeAmount) {
amount = $scope.alternativeResult;
alternativeAmount = evaluate(format($scope.amount));
amount = fromFiat($scope.globalResult);
alternativeAmount = profileService.formatAmount(evaluate(format($scope.amount)) * unitToSatoshi, true);
} else {
amount = evaluate(format($scope.amount));
amount = profileService.formatAmount(evaluate(format($scope.amount)) * unitToSatoshi, true);
alternativeAmount = toFiat(amount);
}