Front End Development Libraries Projects - Build a 25 + 5 Clock

Tell us what’s happening:

Test #24 fail, possible bug? Negative number in session timer, I don’t know what is going on.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Challenge Information:

Front End Development Libraries Projects - Build a 25 + 5 Clock

Hello, How are you running this? I ran this but the only thing showing up is the testable projects app.

git bash

you need npm install, then type npm run dev

1 Like

The only thing I found is that you have is action value that is not being read , I don’t know if it matters or not after writing state[action.payload] ===“” nothing happend. Good luck

Here what I found, when is testing #24, this condition (decIncBtnId === “session-decrement” && sessionTimer - 1 > 0) value for some reason is equal true.

This is where the -36 came from, I’m dispatching decrementTimerValue even when sessionTimer is < 0.

If I move sessionTimer - 1 > 0 inside the action it’s works.

Why??

Yes it passes now what program is the screen shot or what did you use to check the time out issue? Vs code wrote the same code, I found that interesting :grinning_face:

I used the Redux DevTools extension.