Skip to content

Commit 1dc1643

Browse files
committed
Fix exercise generation
1 parent 1d9b4a7 commit 1dc1643

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/retro.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ function exerciseBlock(exercise) {
3030
'{% exercise %}',
3131
render(exercise.content),
3232
'{% initial %}',
33-
exercise.initial,
33+
exercise.code.initial,
3434
'{% solution %}',
35-
exercise.solution,
35+
exercise.code.solution,
3636
'{% validation %}',
37-
exercise.validation,
37+
exercise.code.validation,
3838
'{% context %}',
39-
exerciseObj.context,
39+
exercise.code.context,
4040
'{% endexercise %}',
4141
].join('\n');
4242
}

0 commit comments

Comments
 (0)