diff --git a/app/pages/reader/forms.vue b/app/pages/reader/forms.vue index 374602a..fe50261 100644 --- a/app/pages/reader/forms.vue +++ b/app/pages/reader/forms.vue @@ -85,7 +85,8 @@ const isCurrentComponentCorrect = computed(() => { if (q.questionType !== 'mcq') return true const options = q.questionOptions as any if (!options || !options.choices) return true - const choice = options.choices.find((c: any) => c.text === answers.value[q.id]) + const choiceIndex = Number(answers.value[q.id]) + const choice = options.choices[choiceIndex] return choice ? choice.correct : false }) @@ -396,14 +397,14 @@ function getBadgeClass(type: string) {