Skip to content

[BUG] Remove dead code from quiz component #108

Description

@deepanshusingla076

Describe the bug
The quiz explanation feature never appears after completing a quiz. The quizCompleted variable in quiz.jsx is always set to false, so the explanation section is never shown, even when the quiz is finished.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Interview Quiz page
  2. Start and complete a quiz
  3. Try to view the explanation for any question
  4. The explanation section does not appear

Expected behavior
After finishing the quiz, I expect to see the explanation for each question, but it never shows up.

Device (please complete the following information):

  • Device Type: Desktop
  • OS: Windows11
  • Browser chrome

Additional context
The bug is in quiz.jsx :
const quizCompleted = false; // This never changes!
Because of this, the explanation UI is always hidden.
I think the logic for tracking quiz completion needs to be fixed so users can see explanations after finishing the quiz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions