Commit f2f07486dd92fd2d4dee44fd7335ced000848247

Authored by Lars Jørgen Fredheim
1 parent 5060123b

Fixed input check

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
js/Setup.js
... ... @@ -129,10 +129,10 @@ class Setup {
129 129 break;
130 130 case "terraceLShape":
131 131 case "terraceDiamond":
132   - if(inputs[0] <= inputs[2]) {
  132 + if(parseInt(inputs[0]) <= parseInt(inputs[2])) {
133 133 document.getElementById("errorC").style.display = "inline";
134 134 return false;
135   - } else if (inputs[1] <= inputs[3]) {
  135 + } else if (parseInt(inputs[1]) <= parseInt(inputs[3])) {
136 136 document.getElementById("errorD").style.display = "inline";
137 137 return false;
138 138 }
... ...