Fixes QR code for small amounts
This commit is contained in:
parent
54015c552e
commit
8b5db28d81
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue