float number mini fix

This commit is contained in:
Aliberk Sandıkçı 2024-01-08 17:16:26 +03:00
parent 1e13a52eee
commit 074ab9336f
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -203,8 +203,9 @@ if (!$_SERVER['DOCUMENT_ROOT']) {
let progbar = document.getElementById("pprogress")
progbar.max = goalAmount;
progbar.value = curAmount;
progbar.labels[1].innerHTML = curAmount + "/" + goalAmount + "";
console.log(curAmount, curAmount.toFixed(2));
progbar.value = curAmount.toFixed(2);
progbar.labels[1].innerHTML = curAmount.toFixed(2) + "/" + goalAmount + "";
}
})
.catch(err => {