small fixes
This commit is contained in:
parent
c556eece8e
commit
70450a8774
2 changed files with 6 additions and 5 deletions
|
|
@ -95,7 +95,8 @@ validateIban = (target) => {
|
|||
}
|
||||
|
||||
validateAmount = (target) => {
|
||||
if (parseFloat(target.value) > 0) {
|
||||
if (parseFloat(target.value) > 0 && target.value.toString() === parseFloat(target.value).toFixed(2).toString()) {
|
||||
target.value = parseFloat(target.value).toFixed(2);
|
||||
target.classList.remove("is-danger")
|
||||
document.querySelector("#amount div span.is-right").innerHTML = "✅";
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue