usmansbk / pomofocus

Pomofocus clone built with React & Redux

Home Page:https://pomofocus-lite.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Count Down won't reset if pomodor time is the same as break time

jt6677 opened this issue · comments

// useCountdown.js

useEffect(() => {
setTime(time);
}, [time]);

If breaks.time === pomodoro.time, this count down won't reset. Just pass mode as a prop and use that instead.