From 9ca9b5a5d2e5e18e4524e1ff131dfa1229438b57 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 5 Sep 2019 14:58:01 +0900 Subject: [PATCH] Remove lightning sats denomination (Fix #1012) --- BTCPayServer/Views/Invoice/Checkout.cshtml | 10 +--------- Build/Version.csproj | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/BTCPayServer/Views/Invoice/Checkout.cshtml b/BTCPayServer/Views/Invoice/Checkout.cshtml index 82d78be4b..2703cd527 100644 --- a/BTCPayServer/Views/Invoice/Checkout.cshtml +++ b/BTCPayServer/Views/Invoice/Checkout.cshtml @@ -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(); diff --git a/Build/Version.csproj b/Build/Version.csproj index b3a56bbef..10fb7f938 100644 --- a/Build/Version.csproj +++ b/Build/Version.csproj @@ -1,5 +1,5 @@ - 1.0.3.129 + 1.0.3.130