Compare commits
No commits in common. "b130482e21e018b886dc410b23e0ca9dc6cfb23e" and "5769456dced4a5c59598c59639ee0d1b636e3665" have entirely different histories.
b130482e21
...
5769456dce
@ -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.find(v => v === val));
|
||||
$: isCorrect = selected.every(val => question.correct[val]);
|
||||
|
||||
$: console.log("Selected:", selected, "showResult:", showResult, "isCorrect", isCorrect);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user