fix confirm popup on confirm view
This commit is contained in:
parent
e2024d1df2
commit
dddb3d6456
1 changed files with 7 additions and 7 deletions
|
|
@ -223,13 +223,13 @@ angular.module('copayApp.controllers').controller('confirmController', function(
|
||||||
function setSendMaxValues(data) {
|
function setSendMaxValues(data) {
|
||||||
resetValues();
|
resetValues();
|
||||||
var config = configService.getSync().wallet;
|
var config = configService.getSync().wallet;
|
||||||
var unitName = config.settings.unitName;
|
|
||||||
var unitToSatoshi = config.settings.unitToSatoshi;
|
var unitToSatoshi = config.settings.unitToSatoshi;
|
||||||
var satToUnit = 1 / unitToSatoshi;
|
var satToUnit = 1 / unitToSatoshi;
|
||||||
var unitDecimals = config.settings.unitDecimals;
|
var unitDecimals = config.settings.unitDecimals;
|
||||||
|
|
||||||
$scope.displayAmount = txFormatService.formatAmount(data.amount, true);
|
$scope.amountStr = txFormatService.formatAmountStr(data.amount, true);
|
||||||
$scope.displayUnit = unitName;
|
$scope.displayAmount = getDisplayAmount($scope.amountStr);
|
||||||
|
$scope.displayUnit = getDisplayUnit($scope.amountStr);
|
||||||
$scope.fee = txFormatService.formatAmountStr(data.fee);
|
$scope.fee = txFormatService.formatAmountStr(data.fee);
|
||||||
toAmount = parseFloat((data.amount * satToUnit).toFixed(unitDecimals));
|
toAmount = parseFloat((data.amount * satToUnit).toFixed(unitDecimals));
|
||||||
txFormatService.formatAlternativeStr(data.amount, function(v) {
|
txFormatService.formatAlternativeStr(data.amount, function(v) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue