-
Question {currentQuestionIndex + 1} of {quiz.mcqs.length}:
-
+
{currentQuestion.skills.map((skill) => skill.name).join(', ')}
+
{currentQuestion.options.map((option) => (
-
+
handleOptionClick(currentQuestion.id, option.no)}>
-
- {option.isAnswer &&
Correct Answer}
-
{option.explanation}
-
+ {explanationsVisible[option.no] && (
+
+ {option.isAnswer &&
Correct Answer}
+
{option.explanation}
+
+ )}
))}
@@ -415,42 +451,36 @@ const QuizPage: React.FC = () => {
console.error('Quiz ID is undefined or selected option is null');
}
}}
+ disabled={!isAnswered}
>
) : (
<>
No more questions in this quiz. Click to submit.
>
)}