From 8dd3c76fa401b3b9ef711c5fe3d98c8f8febdc3c Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Thu, 21 Jul 2022 13:50:35 +0200 Subject: [PATCH] Make it work with decimal discount values --- BTCPayServer/wwwroot/light-pos/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer/wwwroot/light-pos/app.js b/BTCPayServer/wwwroot/light-pos/app.js index 793b46233..1f4776813 100644 --- a/BTCPayServer/wwwroot/light-pos/app.js +++ b/BTCPayServer/wwwroot/light-pos/app.js @@ -133,7 +133,7 @@ document.addEventListener("DOMContentLoaded",function () { // Remove tip if we are changing discount % as it won't be the right number anymore this.removeTip(); - const discountPercent = parseInt(e.target.value, 10); + const discountPercent = parseFloat(e.target.value); const { divisibility } = this.srvModel.currencyInfo; this.payTotalNumeric += this.discountTotalNumeric;