Fixes QR code for small amounts

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-26 15:08:59 -03:00
parent 54015c552e
commit 8b5db28d81
No known key found for this signature in database
GPG Key ID: 15EDAD8D9F2EB1AF
1 changed files with 1 additions and 1 deletions

View File

@ -468,7 +468,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
$scope.customizedAmountUnit = amount + ' ' + $scope.unitName;
$scope.customizedAlternativeUnit = $filter('noFractionNumber')(form.alternative.$modelValue, 2) + ' ' + $scope.alternativeIsoCode;
if ($scope.unitName == 'bits') {
amount = amountSat * satToBtc;
amount = (amountSat * satToBtc).toFixed(8);
}
$scope.customizedAmountBtc = amount;
}, 1);