File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ class Channel implements Channel {
83
83
84
84
// load continued tutorial position & progress
85
85
const { position, progress } = await this . context . setTutorial ( this . workspaceState , tutorial )
86
+ logger ( 'CONTINUE STATE' , position , progress )
86
87
87
88
if ( progress . complete ) {
88
89
// tutorial is already complete
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ class Progress {
53
53
throw new Error ( `setStepComplete level not found for stepId ${ stepId } ` )
54
54
}
55
55
56
- if ( currentLevel . steps [ currentLevel . steps . length - 1 ] ) {
56
+ if ( currentLevel . steps [ currentLevel . steps . length - 1 ] . id === stepId ) {
57
57
// final step for level is complete
58
58
next . levels [ currentLevel . id ] = true
59
59
Original file line number Diff line number Diff line change 1
1
import { LOG } from '../../environment'
2
2
3
- export type Log = string | object | null | undefined
3
+ export type Log = string | number | object | null | undefined
4
4
5
5
const logger = ( ...messages : Log [ ] ) : void => {
6
6
if ( ! LOG ) {
You can’t perform that action at this time.
0 commit comments