I was quite surprised by the outcome of the code I wrote. It seemed like it wouldn't work because it was checking if something is not running and the ID matches a specific one, then executing the code regardless of the break size limit:
if(!isRunning && id==="break-increment" && breakvar<=59){
this.setState((state) => ({
break: this.state.break +1}))}
To my surprise, the code worked successfully. However, I am still puzzled as to why it did. Shouldn't it have failed because it never evaluated the cap size?