From 24b982329a2c30199de0fc0073104bedb94e513a Mon Sep 17 00:00:00 2001 From: Zach Hancock Date: Tue, 19 Sep 2023 12:51:38 -0400 Subject: [PATCH] fix: exam state null check --- 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; }