Merged in feature/level-file-upload (pull request #85)

Feature/level file upload
This commit is contained in:
carlos.mesquita
2024-09-03 15:46:39 +00:00
committed by Tiago Ribeiro
16 changed files with 143 additions and 96 deletions

View File

@@ -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;
});