forked from rDrama/rDrama
fix
parent
9a3022597f
commit
30c02b72db
|
@ -320,9 +320,11 @@
|
||||||
function updateTax() {
|
function updateTax() {
|
||||||
// let suf = mobile ? "-mobile" : "";
|
// let suf = mobile ? "-mobile" : "";
|
||||||
let amount = parseInt(document.getElementById("coins-transfer-amount").value);
|
let amount = parseInt(document.getElementById("coins-transfer-amount").value);
|
||||||
|
|
||||||
if(isNaN(amount) || amount < 0) {
|
if(isNaN(amount) || amount < 0) {
|
||||||
amount = 0;
|
amount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("coins-transfer-taxed".innerText = amount - Math.ceil(amount*TRANSFER_TAX));
|
document.getElementById("coins-transfer-taxed".innerText = amount - Math.ceil(amount*TRANSFER_TAX));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue