Skip to content

fix completion page to show test results - #370

Merged
saa938 merged 2 commits into
AP-Students:mainfrom
Famousmaster206:fix-congradulations-page-issue
Aug 14, 2026
Merged

fix completion page to show test results#370
saa938 merged 2 commits into
AP-Students:mainfrom
Famousmaster206:fix-congradulations-page-issue

Conversation

@Famousmaster206

Copy link
Copy Markdown
Contributor

Description

right now, the completion page's continue page goes to home screen instead of viewing results. After the pr, it should go to the results screen

Pull request type

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

Checklist

  • I have performed a self-review of my own code

@saa938 saa938 linked an issue Aug 14, 2026 that may be closed by this pull request
5 tasks
Showing the completion page unmounts Header, so continuing on to the
results remounts it with a fresh countdown at the full test duration.
When that timer expired it re-fired setSubmitted(true), which now routes
through handleSetSubmitted and flipped showCompletionPage back on --
throwing the user from their results back to the completion page, once
per test duration, indefinitely. Measured on a 12-second test: it
returned 11.8s after Continue and again 11.5s later, interrupting a
question explanation mid-read.

Ignore repeat submits so the restarted timer can't re-trigger it.

Also fix the footer's primary button on the results page. Its label was
keyed on currentQuestionIndex === questions.length - 1, but submitting
resets the index to 0, so it read "Next" while actually triggering the
exit confirm. Branch on showReviewPage first; pre-submit labels are
unchanged, since the review page was previously only reachable from the
last question.
@saa938
saa938 merged commit 6041396 into AP-Students:main Aug 14, 2026
1 check passed
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.

"Congratulations" Page on MCQ Completion

2 participants