remove console.logs

This commit is contained in:
Ole Morud
2022-08-25 21:02:30 +02:00
parent a0eda5dffa
commit d8d0126662

View File

@@ -27,17 +27,14 @@ function Board() {
if (playing) { if (playing) {
intervalRef.current = setInterval(() => { intervalRef.current = setInterval(() => {
step() step()
console.log("a")
}, STEP_DELAY) }, STEP_DELAY)
} else { } else {
clearInterval(intervalRef.current) clearInterval(intervalRef.current)
console.log(program)
} }
}, [playing]) }, [playing])
useEffect(() => { useEffect(() => {
if (program.done) { if (program.done) {
console.log("done")
const x = structuredClone(program) const x = structuredClone(program)
resetProgram(x) resetProgram(x)
setPlaying(false) setPlaying(false)