Updated the Level Exam to work based on Parts
This commit is contained in:
@@ -304,7 +304,7 @@ export default function ExamPage({page}: Props) {
|
||||
};
|
||||
|
||||
const updateExamWithUserSolutions = (exam: Exam): Exam => {
|
||||
if (exam.module === "reading" || exam.module === "listening") {
|
||||
if (exam.module === "reading" || exam.module === "listening" || exam.module === "level") {
|
||||
const parts = exam.parts.map((p) =>
|
||||
Object.assign(p, {
|
||||
exercises: p.exercises.map((x) =>
|
||||
|
||||
Reference in New Issue
Block a user