Fix ESLint errors: remove setState-in-effect, use nullish coalescing
This commit is contained in:
@@ -92,8 +92,6 @@ export default function TimeClockPage() {
|
||||
};
|
||||
tick();
|
||||
intervalRef.current = setInterval(tick, 1000);
|
||||
} else {
|
||||
setElapsed(0);
|
||||
}
|
||||
return () => {
|
||||
if (intervalRef.current) clearInterval(intervalRef.current);
|
||||
|
||||
Reference in New Issue
Block a user