diff --git a/frontend/src/components/questions/MultipleSelect.tsx b/frontend/src/components/questions/MultipleSelect.tsx index d9046f8..abcd790 100644 --- a/frontend/src/components/questions/MultipleSelect.tsx +++ b/frontend/src/components/questions/MultipleSelect.tsx @@ -15,7 +15,7 @@ export default function MultipleSelect({ q, value, onChange, locked, graded }: P if (locked) return onChange(current.includes(id) ? current.filter((v) => v !== id) : [...current, id]) } - const answerSet = new Set((q.answer as string[]) ?? []) + const answerSet = new Set(Array.isArray(q.answer) ? q.answer : []) return (