FCC: 25 + 5 Clock

I’m working on this project. I see that the test case 2 in #Timer is failed but I see that #break-decrement is doing It’s job by decrements a value of 1

Here is my code:

let [breakLength, setBreakLength] = useState("5");
    const breakDecrement = () => {
        let result = breakLength - 1;
       if (result > 0) {
           setBreakLength(result);
       }
    };

You can see also my code in in the link below :arrow_down: :

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.