do not cache total in current unit
This commit is contained in:
parent
a8daca615c
commit
553b0fca0d
2 changed files with 1 additions and 3 deletions
|
|
@ -414,7 +414,7 @@ angular.module('copayApp.controllers').controller('SendController',
|
||||||
} else {
|
} else {
|
||||||
$scope._merchantData = merchantData;
|
$scope._merchantData = merchantData;
|
||||||
$scope._domain = merchantData.domain;
|
$scope._domain = merchantData.domain;
|
||||||
$scope.setForm(null, merchantData.unitTotal);
|
$scope.setForm(null, merchantData.total * satToUnit);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1798,8 +1798,6 @@ Wallet.prototype._addOutputsToMerchantData = function(merchantData) {
|
||||||
if (merchantData.total == "0" && options.amount) {
|
if (merchantData.total == "0" && options.amount) {
|
||||||
merchant.outs[0].amountSatStr = merchantData.total = options.amount;
|
merchant.outs[0].amountSatStr = merchantData.total = options.amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
merchantData.unitTotal = merchantData.total ? (+merchantData.total / this.settings.unitToSatoshi) + '' : 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue