Skip to content

Commit 4bb125d

Browse files
committed
clear tutorial on new
1 parent 14d4f56 commit 4bb125d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

web-app/src/services/state/actions/editor.ts

+3
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,7 @@ export default {
7575
})
7676
}
7777
},
78+
clearStorage() {
79+
channel.editorSend({type: 'TUTORIAL_CLEAR'})
80+
}
7881
}

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ export const machine = Machine<CR.MachineContext, CR.MachineStateSchema, CR.Mach
3434
actions: ['continueTutorial'],
3535
},
3636
NEW_TUTORIAL: {
37-
target: 'SelectTutorial'
37+
target: 'SelectTutorial',
38+
actions: ['clearStorage']
3839
}
3940
},
4041
},

0 commit comments

Comments
 (0)