From ca8d08c8a0b85c0f3630d9610ba719ace50d5a9b Mon Sep 17 00:00:00 2001 From: Jansen Kantor Date: Fri, 10 Jan 2025 14:08:32 -0500 Subject: [PATCH] fixup! fix: error code expecting wrong data shape --- src/data/redux/grading/reducer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/redux/grading/reducer.js b/src/data/redux/grading/reducer.js index 8c01cf41..0b22f777 100644 --- a/src/data/redux/grading/reducer.js +++ b/src/data/redux/grading/reducer.js @@ -185,7 +185,7 @@ const grading = createSlice({ ...(payload && { [submissionUUID]: payload.gradeData }), }; - const { gradeStatus } = payload ? payload : state.current; + const { gradeStatus } = payload || state.current; const lockStatus = payload ? payload.lockStatus : lockStatuses.unlocked; return {