diff --git a/src/views/questions/SelectMultiple.svelte b/src/views/questions/SelectMultiple.svelte index effebe9..132892c 100644 --- a/src/views/questions/SelectMultiple.svelte +++ b/src/views/questions/SelectMultiple.svelte @@ -7,7 +7,7 @@ $: options = Object.keys(question.options).map(e => ({ key: e, value: question.options[e] })); let selected = []; - $: isCorrect = selected.length === question.correct.length && selected.every(val => question.correct[val]); + $: isCorrect = selected.length === question.correct.length && selected.every(val => question.correct.find(val)); $: console.log("Selected:", selected, "showResult:", showResult, "isCorrect", isCorrect);