Remove lightning sats denomination (Fix #1012)

This commit is contained in:
nicolas.dorier 2019-09-05 14:58:01 +09:00
parent 3a87dc2223
commit 9ca9b5a5d2
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with 2 additions and 10 deletions

View File

@ -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();

View File

@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<Version>1.0.3.129</Version>
<Version>1.0.3.130</Version>
</PropertyGroup>
</Project>