Fix ESLint errors: remove setState-in-effect, use nullish coalescing

This commit is contained in:
Claude
2026-06-06 18:06:32 +00:00
parent bdc25e0c58
commit b0e026c963
2 changed files with 4 additions and 6 deletions
-2
View File
@@ -92,8 +92,6 @@ export default function TimeClockPage() {
};
tick();
intervalRef.current = setInterval(tick, 1000);
} else {
setElapsed(0);
}
return () => {
if (intervalRef.current) clearInterval(intervalRef.current);