Skip to content

Fix/continue #255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
fix continue init load
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Apr 18, 2020
commit 9168e37c2e815a7f558f86252d9dcda89d7b2dec
6 changes: 3 additions & 3 deletions src/channel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ class Channel implements Channel {
// continue from tutorial from local storage
const tutorial: TT.Tutorial | null = this.context.tutorial.get()

// new tutorial
if (!tutorial || !tutorial.id) {
if (!tutorial || !tutorial.config) {
// new tutorial
this.send({ type: 'START_NEW_TUTORIAL', payload: { env } })
return
}

// set tutorial
// set tutorials
const { position, progress } = await this.context.setTutorial(this.workspaceState, tutorial)

if (progress.complete) {
Expand Down