Skip to content

Commit

Permalink
remove unnessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
sn163 committed Apr 19, 2024
1 parent 7482a5b commit 00c682f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/_components/timer/PomodoroTimer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 00c682f

Please sign in to comment.