fixed color bug in class optimizer

This commit is contained in:
Frederik Palmø 2022-03-20 21:49:06 +01:00
parent 1f4894f946
commit 1e1074bb50

View File

@ -51,7 +51,7 @@ async function update() {
let desired = [...document.getElementsByName("desired-stat")].map(
elem => {
elem.value = Math.min(Math.max(elem.value, 0), 99) || null;
return parseInt(elem.value);
return parseInt(elem.value) || 0;
}
)