diff --git a/src/app/_components/timer/PomodoroTimer.tsx b/src/app/_components/timer/PomodoroTimer.tsx index 58dfc0a..8ffae32 100644 --- a/src/app/_components/timer/PomodoroTimer.tsx +++ b/src/app/_components/timer/PomodoroTimer.tsx @@ -45,8 +45,7 @@ export default function PomodoroTimer() { }, 1000); } return () => { - if (timerRef.current) - if (timerRef.current) clearInterval(timerRef.current); + if (timerRef.current) clearInterval(timerRef.current); }; }, [timer, minutes, pomodoroTime, rounds, seconds, dispatch]);