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 :