Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4bb125d

Browse files
committed
clear tutorial on new
1 parent14d4f56 commit4bb125d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
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

Lines changed: 2 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp