Skip to content

Conversation

@cahirodoherty-learningpool
Copy link
Contributor

Fixes #240

Fix

  • Check _canShowCorrectness value before applying item-level classes

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #240 by ensuring that item-level correctness classes (is-correct and is-incorrect) are only applied when the _canShowCorrectness configuration is enabled. Additionally, it corrects a typo in the pull request template.

  • Added _canShowCorrectness check to item-level class conditions for consistent behavior with component-level correctness display
  • Fixed typo in pull request template ("udpate" → "update")

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
templates/mcq.jsx Added _canShowCorrectness check before applying is-correct and is-incorrect classes to individual MCQ items, ensuring consistency with the component-level correctness display configuration
.github/pull_request_template.md Fixed spelling error in the "Update" section header

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Reviewing

Development

Successfully merging this pull request may close these issues.

Correctness is displaying on items even when _canShowCorrectness is false

3 participants