Previous Level exams were being broken by the part divider changes, fixed it.
This commit is contained in:
@@ -27,7 +27,9 @@ export const countExercises = (exercises: Exercise[]) => {
|
||||
if (e.type === "multipleChoice") return e.questions.length;
|
||||
if (e.type === "interactiveSpeaking") return e.prompts.length;
|
||||
if (e.type === "fillBlanks") return e.words.length;
|
||||
|
||||
if (e.type === "writeBlanks") return e.solutions.length;
|
||||
if (e.type === "matchSentences") return e.sentences.length;
|
||||
if (e.type === "trueFalse") return e.questions.length;
|
||||
return 1;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user