Skip to content

Commit 3a7c97d

Browse files
fix: all steps completed if final grade received
1 parent 626aef2 commit 3a7c97d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/data/services/lms/hooks/selectors.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ export const useStepState = ({ step }) => {
144144
const stepIndex = useStepIndex({ step });
145145
const subState = useSubmissionState();
146146

147+
if (hasReceivedFinalGrade) {
148+
return stepStates.completed;
149+
}
150+
147151
if (step === stepNames.submission) {
148152
return subState;
149153
}

0 commit comments

Comments
 (0)