Skip to content
Prev Previous commit
Next Next commit
sync position when loading next
Signed-off-by: shmck <[email protected]>
  • Loading branch information
ShMcK committed Jul 31, 2020
commit 0e81b82a4bae7350bd81dc37cf3715cfeeb74121
3 changes: 2 additions & 1 deletion web-app/src/services/state/machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const createMachine = (options: any) => {
},
},
LevelComplete: {
onExit: ['testClear', 'syncLevelPosition'],
onExit: ['testClear'],
on: {
NEXT_LEVEL: 'LoadNext',
KEY_PRESS_ENTER: 'LoadNext',
Expand All @@ -224,6 +224,7 @@ export const createMachine = (options: any) => {
LoadNext: {
id: 'tutorial-load-next',
onEntry: ['loadNext'],
onExit: ['syncLevelPosition'],
on: {
NEXT_STEP: {
target: 'Load',
Expand Down