Skip to content

Commit 38499ac

Browse files
committed
Minor cleanup
1 parent 2fc0176 commit 38499ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SIL.XForge.Scripture/ClientApp/src/app/checking/checking/checking-questions/checking-questions.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ export class CheckingQuestionsComponent implements OnInit, OnChanges {
215215
}
216216

217217
protected activateFirstUnansweredQuestion(): void {
218-
if (!this.hasUnansweredQuestion) return;
219-
this.activateQuestion(this._firstUnansweredQuestion!.docs[0], { isQuestionListChange: false });
218+
if (!this.hasUnansweredQuestion || this._firstUnansweredQuestion == null) return;
219+
this.activateQuestion(this._firstUnansweredQuestion.docs[0], { isQuestionListChange: false });
220220
}
221221

222222
private get canAddAnswer(): boolean {

0 commit comments

Comments
 (0)