mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 21:32:27 +01:00
Remove lightning sats denomination (Fix #1012)
This commit is contained in:
parent
3a87dc2223
commit
9ca9b5a5d2
@ -314,21 +314,13 @@
|
||||
},
|
||||
onDataCallback : function(jsonData){
|
||||
if (this.srvModel.status !== jsonData.status) {
|
||||
window.parent.postMessage({ "invoiceId": srvModel.invoiceId, "status": jsonData.status }, "*");
|
||||
window.parent.postMessage({ "invoiceId": this.srvModel.invoiceId, "status": jsonData.status }, "*");
|
||||
}
|
||||
if (jsonData.paymentMethodId === this.srvModel.paymentMethodId) {
|
||||
this.changingCurrencies = false;
|
||||
}
|
||||
// displaying satoshis for lightning payments
|
||||
jsonData.cryptoCodeSrv = jsonData.cryptoCode;
|
||||
if (jsonData.isLightning && jsonData.lightningAmountInSatoshi && jsonData.cryptoCode === "BTC") {
|
||||
var SATOSHIME = 100000000;
|
||||
jsonData.cryptoCode = "Sats";
|
||||
jsonData.btcDue = numberFormatted(jsonData.btcDue * SATOSHIME);
|
||||
jsonData.btcPaid = numberFormatted(jsonData.btcPaid * SATOSHIME);
|
||||
jsonData.networkFee = numberFormatted(jsonData.networkFee * SATOSHIME);
|
||||
jsonData.orderAmount = numberFormatted(jsonData.orderAmount * SATOSHIME);
|
||||
}
|
||||
// expand line items to show details on amount due for multi-transaction payment
|
||||
if (this.srvModel.txCount === 1 && jsonData.txCount > 1) {
|
||||
this.onlyExpandLineItems();
|
||||
|
@ -1,5 +1,5 @@
|
||||
<Project>
|
||||
<PropertyGroup>
|
||||
<Version>1.0.3.129</Version>
|
||||
<Version>1.0.3.130</Version>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user