fix bug: level completed on reload

pull/54/head
Alexander Bentkamp 2 years ago
parent 75f356f4b2
commit 1c3fa815da

@ -33,9 +33,8 @@ export function Main(props: {world: string, level: number}) {
if (ec.events.changedCursorLocation.current && if (ec.events.changedCursorLocation.current &&
ec.events.changedCursorLocation.current.uri === params.uri) { ec.events.changedCursorLocation.current.uri === params.uri) {
dispatch(codeEdited)
}
dispatch(levelCompleted({world: props.world, level: props.level})) dispatch(levelCompleted({world: props.world, level: props.level}))
}
}, },
[] []
); );

Loading…
Cancel
Save