Updated the Level Exam to work based on Parts
This commit is contained in:
@@ -78,7 +78,7 @@ export default function Finish({user, scores, modules, information, isLoading, o
|
||||
|
||||
const getTotalExercises = () => {
|
||||
const exam = exams.find((x) => x.module === selectedModule)!;
|
||||
if (exam.module === "reading" || exam.module === "listening") {
|
||||
if (exam.module === "reading" || exam.module === "listening" || exam.module === "level") {
|
||||
return exam.parts.flatMap((x) => x.exercises).length;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user