Merge pull request #4962 from JDonadio/bug/amount

Fix amount
This commit is contained in:
Matias Alejo Garcia 2016-11-01 15:42:08 -03:00 committed by GitHub
commit ab101bca77
1 changed files with 2 additions and 2 deletions

View File

@ -239,10 +239,10 @@ angular.module('copayApp.controllers').controller('amountController', function($
});
} else {
var amount = $scope.showAlternativeAmount ? fromFiat(_amount).toFixed(unitDecimals) : _amount.toFixed(unitDecimals);
var amount = $scope.showAlternativeAmount ? fromFiat(_amount) : _amount;
$state.transitionTo('tabs.send.confirm', {
isWallet: $scope.isWallet,
toAmount: amount * unitToSatoshi,
toAmount: (amount * unitToSatoshi).toFixed(0),
toAddress: $scope.toAddress,
toName: $scope.toName,
toEmail: $scope.toEmail