Fix: move isReacting=false before updateDisplay call

This commit is contained in:
2026-02-26 20:58:46 -06:00
parent dbba288d24
commit 2089a06512

View File

@@ -482,6 +482,7 @@
// Return to normal after 1.5s - fetch fresh state
setTimeout(async () => {
isReacting = false;
try {
const resp = await fetch("/status");
if (resp.ok) {
@@ -489,7 +490,6 @@
updateDisplay(freshData);
}
} catch (_) {}
isReacting = false;
}, 1500);
}
});