File tree Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Expand file tree Collapse file tree 1 file changed +19
-12
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ export const machine = Machine<
2020 initial : 'Initial' ,
2121 states : {
2222 Initial : {
23- after : {
24- 2000 : 'Startup'
23+ on : {
24+ WEBVIEW_INITIALIZED : 'Startup'
2525 }
2626 } ,
2727 Startup : {
@@ -50,7 +50,7 @@ export const machine = Machine<
5050 ContinueTutorial : {
5151 onEntry : [ 'tutorialContinue' ] ,
5252 on : {
53- TUTORIAL_START : '#tutorial-load-next '
53+ TUTORIAL_START : '#tutorial-load-current '
5454 }
5555 } ,
5656 }
@@ -66,6 +66,13 @@ export const machine = Machine<
6666 0 : 'Summary'
6767 }
6868 } ,
69+ LoadCurrent : {
70+ id : 'tutorial-load-current' ,
71+ // TODO: verify current is not complete
72+ after : {
73+ 0 : 'Stage'
74+ } ,
75+ } ,
6976 LoadNext : {
7077 id : 'tutorial-load-next' ,
7178 onEntry : [ 'tutorialLoadNext' ] ,
@@ -120,14 +127,9 @@ export const machine = Machine<
120127 TestPass : {
121128 onEntry : [ 'testPass' , 'stepComplete' ] ,
122129 after : {
123- 1000 : {
124- target : 'StepNext' ,
125- cond : 'hasNextStep' ,
126- }
127- } ,
128- on : {
129- NEXT : 'StageComplete' ,
130+ 1000 : 'StepNext' ,
130131 } ,
132+
131133 } ,
132134 TestFail : {
133135 onEntry : [ 'testFail' ] ,
@@ -138,8 +140,13 @@ export const machine = Machine<
138140 StepNext : {
139141 onEntry : [ 'stepLoadNext' ] ,
140142 after : {
141- 0 : 'Normal'
142- }
143+ 0 : [ {
144+ target : 'Normal' ,
145+ cond : 'hasNextStep' ,
146+ } , {
147+ target : 'StageComplete'
148+ } ]
149+ } ,
143150 } ,
144151 StageComplete : {
145152 onEntry : 'stageComplete' ,
You can’t perform that action at this time.
0 commit comments