diff --git a/src/components/Solutions/InteractiveSpeaking.tsx b/src/components/Solutions/InteractiveSpeaking.tsx index 37cd76bb..598cc5c3 100644 --- a/src/components/Solutions/InteractiveSpeaking.tsx +++ b/src/components/Solutions/InteractiveSpeaking.tsx @@ -193,17 +193,17 @@ export default function InteractiveSpeaking({ - {userSolutions[0].evaluation!.perfect_answer_1!.replaceAll(/\s{2,}/g, "\n\n")} + {userSolutions[0].evaluation!.perfect_answer_1!.answer.replaceAll(/\s{2,}/g, "\n\n")} - {userSolutions[0].evaluation!.perfect_answer_2!.replaceAll(/\s{2,}/g, "\n\n")} + {userSolutions[0].evaluation!.perfect_answer_2!.answer.replaceAll(/\s{2,}/g, "\n\n")} - {userSolutions[0].evaluation!.perfect_answer_3!.replaceAll(/\s{2,}/g, "\n\n")} + {userSolutions[0].evaluation!.perfect_answer_3!.answer.replaceAll(/\s{2,}/g, "\n\n")} diff --git a/src/interfaces/exam.ts b/src/interfaces/exam.ts index 639360d0..15c6df20 100644 --- a/src/interfaces/exam.ts +++ b/src/interfaces/exam.ts @@ -116,13 +116,13 @@ export interface Evaluation { } interface InteractiveSpeakingEvaluation extends Evaluation { - perfect_answer_1?: string; + perfect_answer_1?: {answer: string}; transcript_1?: string; fixed_text_1?: string; - perfect_answer_2?: string; + perfect_answer_2?: {answer: string}; transcript_2?: string; fixed_text_2?: string; - perfect_answer_3?: string; + perfect_answer_3?: {answer: string}; transcript_3?: string; fixed_text_3?: string; }