Skip to content

Commit

Permalink
Fixed #1215 - Quiz feedback (of an option) is not shown in Single Ans…
Browse files Browse the repository at this point in the history
…wer mode
  • Loading branch information
torinfo committed May 4, 2023
1 parent 0ebaae5 commit 3167436
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -333,6 +333,7 @@
});
l_answer.push(selectedOption.name);
l_feedback.push(selectedOption.feedback);
l_selectedOptions.push(selectedOption);
}
// if all selected are correct - check that none of the unselected options should have been
if (correct != false && currentQuestion.getAttribute("type") == "Multiple Answer") {
Expand All @@ -344,12 +345,13 @@
}
}
}
l_selectedOptions.push(selectedOption);

return {
correct: correct,
options: l_options,
answer: l_answer,
feedback: l_feedback
feedback: l_feedback,
selectedOption: l_selectedOptions
};
}

Expand Down

0 comments on commit 3167436

Please sign in to comment.