fix bug: level completed on reload

This commit is contained in:
Alexander Bentkamp
2023-03-07 08:59:48 +01:00
parent 75f356f4b2
commit 1c3fa815da
+1 -2
View File
@@ -33,9 +33,8 @@ export function Main(props: {world: string, level: number}) {
if (ec.events.changedCursorLocation.current &&
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}))
},
[]
);