mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 13:26:47 +01:00
Make it work with decimal discount values
This commit is contained in:
parent
a7c22399d8
commit
8dd3c76fa4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user