diff --git a/src/components/RunCode.tsx b/src/components/RunCode.tsx index 88267ab5..a076e974 100644 --- a/src/components/RunCode.tsx +++ b/src/components/RunCode.tsx @@ -37,7 +37,7 @@ const RunCode: React.FC = ({ displayText, questions }) => { if (question.answer !== undefined) { temp[index] = selections[index] == question.answer; } else if (question.answers !== undefined) { - temp[index] = selections[index] in question.answers; + temp[index] = question.answers.includes(selections[index]); } }); setAnswers([...temp]);