Skip to content

Commit 2d51ff7

Browse files
authored
fix: problem with creating lessons without solution files (#108)
1 parent 9805996 commit 2d51ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/store/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export class TutorialStore {
260260
}
261261

262262
hasSolution(): boolean {
263-
return !!this._lesson && Object.keys(this._lesson.solution).length >= 1;
263+
return !!this._lesson && Object.keys(this._lesson.solution[1]).length >= 1;
264264
}
265265

266266
reset() {

0 commit comments

Comments
 (0)