@learnpack/learnpack 5.0.269 → 5.0.270

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.
@@ -515,7 +515,7 @@ class ServeCommand extends SessionCommand_1.default {
515
515
  if (lesson.id === exercise.id) {
516
516
  return Object.assign(Object.assign({}, lesson), { generated: true, status: "DONE" });
517
517
  }
518
- if (nextExercise && nextExercise.id === lesson.id && !nextStarted) {
518
+ if (nextExercise && nextExercise.id === lesson.id && nextStarted) {
519
519
  return Object.assign(Object.assign({}, lesson), { generated: false, status: "GENERATING" });
520
520
  }
521
521
  return Object.assign({}, lesson);
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.269",
4
+ "version": "5.0.270",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {
@@ -806,7 +806,7 @@ export default class ServeCommand extends SessionCommand {
806
806
  return { ...lesson, generated: true, status: "DONE" }
807
807
  }
808
808
 
809
- if (nextExercise && nextExercise.id === lesson.id && !nextStarted) {
809
+ if (nextExercise && nextExercise.id === lesson.id && nextStarted) {
810
810
  return { ...lesson, generated: false, status: "GENERATING" }
811
811
  }
812
812