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