Build a Pomodoro Clock - Tests Failing - Intervals?

Build a Pomodoro Clock - Tests Failing - Intervals?
0

#1

Hello!

I’m trying to get the functionality of my pomodoro clock working, but it keeps failing and I cannot find out why. It fails the 1., 10. and 11. timer test, which should stop the timer when you click to reset/pause.
It doesn’t do so only if you click on start multiple times, which brings me to conclusion that it somehow sets multiple intervals and cancels only one. I could also be completely wrong…

Here is the link to the codepen - https://codepen.io/StaxXx/pen/BPmKzo .

I’ve been struggling with this for hours already and would really appreciate some help! :smiley: Thanks in advance! :smiley:

Edit:
Nevermind, I got it. There was a problem with external accurateInterval() function.