small fix for powder error handling
This commit is contained in:
parent
9a52699bfa
commit
629f37b9cd
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ function update_field(field) {
|
|||
document.querySelector("#" + field + "-powder").classList.remove("is-invalid");
|
||||
let powder_string = document.querySelector("#"+field+"-powder").value;
|
||||
|
||||
if (powder_string.length % 2 != 0 || powder_string / 2 > powder_slots) {
|
||||
if (powder_string.length % 2 != 0 || powder_string.length / 2 > powder_slots) {
|
||||
document.querySelector("#"+field+"-powder").classList.add("is-invalid");
|
||||
} else {
|
||||
for (i = 0; i < powder_string.length / 2; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue