Hello,
Basically what the title says. I am using React and Redux in this challenge.
Here’s my Codepen for reference:
25 + 5 Clock Project
I have a React component called ControlPanel
(starting on line 430) that contains the button with id="start_stop
and play and pause icons and the button with the refresh icon with id="reset
. The click event on the reset button is passed the this.resetAll
function, which is defined on line 436. resetAll()
includes all the Redux dispatches to reset the break and session length, to update the time shown in the Timer
component, and set the active type of the timer (either session or break). resetAll()
also uses Timers
's pauseTime()
.
When I change session or break lengths and run the timer, and then click the reset button, I see all the default values returning and the timer stopping.
Why isn’t the test case passing?
Thank you in advance for any help.