From 6ee2cb0fa174ba7023c4068b9cce1cb822b9e858 Mon Sep 17 00:00:00 2001 From: Sonny Nguyen Date: Thu, 18 Apr 2024 20:00:09 -0700 Subject: [PATCH] remove unnessary condition --- src/app/_components/timer/PomodoroTimer.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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]);