mirror of https://github.com/BTCPrivate/copay.git
Fixes QR code for small amounts
This commit is contained in:
parent
54015c552e
commit
8b5db28d81
|
@ -468,7 +468,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
|
||||||
$scope.customizedAmountUnit = amount + ' ' + $scope.unitName;
|
$scope.customizedAmountUnit = amount + ' ' + $scope.unitName;
|
||||||
$scope.customizedAlternativeUnit = $filter('noFractionNumber')(form.alternative.$modelValue, 2) + ' ' + $scope.alternativeIsoCode;
|
$scope.customizedAlternativeUnit = $filter('noFractionNumber')(form.alternative.$modelValue, 2) + ' ' + $scope.alternativeIsoCode;
|
||||||
if ($scope.unitName == 'bits') {
|
if ($scope.unitName == 'bits') {
|
||||||
amount = amountSat * satToBtc;
|
amount = (amountSat * satToBtc).toFixed(8);
|
||||||
}
|
}
|
||||||
$scope.customizedAmountBtc = amount;
|
$scope.customizedAmountBtc = amount;
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
Loading…
Reference in New Issue