Skip to content

Commit b1ee1cf

Browse files
committed
fix level complete when no steps
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parent cccca84 commit b1ee1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web-app/src/services/state/machine.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ export const createMachine = (options: any) => {
199199
},
200200
LEVEL_COMPLETE: {
201201
target: 'LevelComplete',
202-
actions: ['onLevelComplete'],
203202
},
204203
},
205204
},
206205
LevelComplete: {
206+
onEntry: ['onLevelComplete'],
207207
onExit: ['testClear', 'incrementLevel'],
208208
on: {
209209
NEXT_LEVEL: 'LoadNext',

0 commit comments

Comments
 (0)