hotfix for the offset check when grain cables are using a mode

This commit is contained in:
csawatzky 2025-10-21 13:24:50 -06:00
parent 46881f6656
commit 4659ba3751

View file

@ -449,7 +449,7 @@ export default function ComponentForm(props: Props) {
let minimum = min ?? 0; let minimum = min ?? 0;
let maximum = max ?? 100; let maximum = max ?? 100;
if (compMode && form.component.settings.calibrate) { if (compMode && form.component.settings.calibrate) {
return Number(form.offset) <= maximum && Number(form.offset) > minimum; return Number(form.offset) <= maximum && Number(form.offset) >= minimum;
} }
return !isNaN(Number(form.offset)); return !isNaN(Number(form.offset));
}; };