Commit 2978f106 authored by Christopher Fullarton's avatar Christopher Fullarton

Fixes console error for the first question of a quiz

parent 4261b3e5
Pipeline #33651 canceled with stages
in 4 minutes and 38 seconds
......@@ -139,7 +139,7 @@ export class QuizResultsComponent implements OnInit, OnDestroy, IHasTriggeredNav
}
public modifyVisibleQuestion(index: number): void {
if (!this.quizService.quiz) {
if (!this.quizService.quiz || typeof index === 'undefined' || index < 0 || index > this.quizService.quiz.questionList.length) {
return;
}
......
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