Skip to content

Commit

Permalink
fixup! fix: error code expecting wrong data shape
Browse files Browse the repository at this point in the history
  • Loading branch information
jansenk committed Jan 10, 2025
1 parent 30a4ca1 commit ca8d08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/redux/grading/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ca8d08c

Please sign in to comment.