File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
web-app/src/services/state Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export const updatePosition = assign({
47
47
} )
48
48
49
49
export const loadNext = send ( ( context : T . MachineContext ) : T . Action => {
50
- const level = selectors . currentLevel ( context )
50
+ const level : TT . Level = selectors . currentLevel ( context )
51
51
return getNext ( context . position , level , context . tutorial ?. levels || [ ] )
52
52
} )
53
53
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ export const createMachine = (options: any) => {
204
204
} ,
205
205
LevelComplete : {
206
206
onEntry : [ 'onLevelComplete' ] ,
207
- onExit : [ 'testClear' , 'incrementLevel' ] ,
207
+ onExit : [ 'testClear' ] ,
208
208
on : {
209
209
NEXT_LEVEL : 'LoadNext' ,
210
210
KEY_PRESS_ENTER : 'LoadNext' ,
Original file line number Diff line number Diff line change @@ -25,11 +25,6 @@ const editorSend = (action: T.Action) =>
25
25
const useStateMachine = ( ) : Output => {
26
26
const [ state , send ] = useMachine < T . MachineContext , any > ( createMachine ( { editorSend } ) )
27
27
28
- const sendWithLog = ( action : T . Action ) : void => {
29
- logger ( action )
30
- send ( action )
31
- }
32
-
33
28
// event bus listener
34
29
React . useEffect ( ( ) => {
35
30
const listener = 'message'
@@ -57,7 +52,7 @@ const useStateMachine = (): Output => {
57
52
return {
58
53
context : state . context ,
59
54
route,
60
- send : sendWithLog ,
55
+ send,
61
56
}
62
57
}
63
58
You can’t perform that action at this time.
0 commit comments