@learnpack/learnpack 5.0.301 → 5.0.302

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -336,6 +336,7 @@ async function continueWithNextLesson(courseSlug, currentExerciseIndex, rigoToke
336
336
  const nextExercise = syllabus.lessons[currentExerciseIndex + 1] || null;
337
337
  let nextCompletionId = null;
338
338
  if (nextExercise &&
339
+ nextExercise.status === "PENDING" &&
339
340
  (currentExerciseIndex === 0 ||
340
341
  !(currentExerciseIndex % 3 === 0) ||
341
342
  syllabus.generationMode === "continue-with-all")) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@learnpack/learnpack",
3
3
  "description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
4
- "version": "5.0.301",
4
+ "version": "5.0.302",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {
@@ -591,6 +591,7 @@ async function continueWithNextLesson(
591
591
  let nextCompletionId: number | null = null
592
592
  if (
593
593
  nextExercise &&
594
+ nextExercise.status === "PENDING" &&
594
595
  (currentExerciseIndex === 0 ||
595
596
  !(currentExerciseIndex % 3 === 0) ||
596
597
  syllabus.generationMode === "continue-with-all")