Updated it to work with the new canges
This commit is contained in:
@@ -357,7 +357,7 @@ export default function ExamPage({page}: Props) {
|
||||
exercise,
|
||||
solutions.find((x) => x.exercise === exercise.id)!,
|
||||
evaluationID,
|
||||
index === 0 ? 1 : 2,
|
||||
index + 1,
|
||||
);
|
||||
}),
|
||||
)
|
||||
|
||||
1001
src/pages/record.tsx
1001
src/pages/record.tsx
File diff suppressed because it is too large
Load Diff
@@ -51,7 +51,7 @@ export const evaluateSpeakingAnswer = async (
|
||||
case "speaking":
|
||||
return {...(await evaluateSpeakingExercise(exercise, exercise.id, solution, id, task)), id} as UserSolution;
|
||||
case "interactiveSpeaking":
|
||||
return {...(await evaluateInteractiveSpeakingExercise(exercise.id, solution, id, exercise.variant)), id} as UserSolution;
|
||||
return {...(await evaluateInteractiveSpeakingExercise(exercise.id, solution, id, task === 3 ? "final" : "initial")), id} as UserSolution;
|
||||
default:
|
||||
return undefined;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user