@@ -35,11 +35,11 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
3535 } ,
3636 NEW_TUTORIAL : {
3737 target : 'SelectTutorial' ,
38- actions : [ 'clearStorage' ]
3938 }
4039 } ,
4140 } ,
4241 SelectTutorial : {
42+ onEntry : [ 'clearStorage' ] ,
4343 id : 'start-new-tutorial' ,
4444 on : {
4545 TUTORIAL_START : {
@@ -50,7 +50,10 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
5050 } ,
5151 ContinueTutorial : {
5252 on : {
53- TUTORIAL_START : '#tutorial-stage' ,
53+ TUTORIAL_START : {
54+ target : '#tutorial-stage' ,
55+ actions : [ 'continueConfig' ] ,
56+ } ,
5457 TUTORIAL_SELECT : 'SelectTutorial'
5558 } ,
5659 } ,
@@ -60,6 +63,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
6063 id : 'tutorial' ,
6164 initial : 'Initialize' ,
6265 states : {
66+ // TODO: move Initialize into New Tutorial setup
6367 Initialize : {
6468 invoke : {
6569 id : 'loadTutorial' ,
@@ -155,6 +159,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
155159 }
156160 } ,
157161 StageComplete : {
162+ onEntry : [ 'syncProgress' ] ,
158163 on : {
159164 STAGE_NEXT : '#tutorial-load-next' ,
160165 } ,
@@ -163,7 +168,7 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
163168 } ,
164169 Completed : {
165170 id : 'completed-tutorial' ,
166- onEntry : [ 'userTutorialComplete' ] ,
171+ onEntry : [ 'syncProgress' , ' userTutorialComplete'] ,
167172 on : {
168173 SELECT_TUTORIAL : {
169174 target : '#start-new-tutorial' ,
0 commit comments