Hides correct answer if the question is the current one

parent 1133ae53
......@@ -115,7 +115,7 @@ export class QuestionDetailsComponent implements OnInit, OnDestroy {
public isCorrectAnswer(index: number): boolean {
return this._question.answerOptionList[index].isCorrect;
return this._questionIndex < this.quizService.quiz.currentQuestionIndex && this._question.answerOptionList[index].isCorrect;
public ngOnDestroy(): void {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment