Skip to content

fix: support quizzes with variable question counts - #733

Open
Ngo Quoc Viet (NgoQuocViet2001) wants to merge 1 commit into
microsoft:mainfrom
NgoQuocViet2001:fix-dynamic-quiz-length
Open

fix: support quizzes with variable question counts#733
Ngo Quoc Viet (NgoQuocViet2001) wants to merge 1 commit into
microsoft:mainfrom
NgoQuocViet2001:fix-dynamic-quiz-length

Conversation

@NgoQuocViet2001

@NgoQuocViet2001 Ngo Quoc Viet (NgoQuocViet2001) commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • use the active quiz's question count to decide when to complete
  • keep existing three-question quizzes unchanged while allowing quiz 224's fourth question to appear

Problem

The lesson 24 post-quiz contains four questions, but Quiz.vue marks it complete after three correct answers. As a result, learners never see the final model-fairness question.

Validation

  • Ran: npm ci
  • Ran: npx eslint src/components/Quiz.vue --rule "vue/multi-word-component-names: off"
  • Ran: npm run build -- --skip-plugins @vue/cli-plugin-eslint --dest ../../../../validation-output/ai-beginners-quiz-build-pr733
  • Checked: the updated handler advances to question 4 and completes after it; three-question quizzes still complete after question 3

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant