From 60cdeb6c9cbb3fb692700862dd143aab266d8d02 Mon Sep 17 00:00:00 2001 From: Zachary Hancock Date: Wed, 20 Sep 2023 17:06:59 -0400 Subject: [PATCH] fix: exam state null check (#118) --- src/data/thunks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/thunks.js b/src/data/thunks.js index 5f5dbb90..d1d06cf6 100644 --- a/src/data/thunks.js +++ b/src/data/thunks.js @@ -539,7 +539,7 @@ export function checkExamEntry() { const { exam } = getState().examState; // Check only applies to LTI exams if ( - !exam.attempt + !exam?.attempt || exam.attempt.exam_type !== ExamType.PROCTORED || exam.attempt.use_legacy_attempt_api ) { return; }