Skip to content

Commit

Permalink
fix: peer review bug (#261)
Browse files Browse the repository at this point in the history
* fix: resolve ORA peer review issue

* fix: resolve visual glitch with validateBeforeConfirmation function

* fix: update StepProgressIndicator Component
  • Loading branch information
hajorg authored Dec 16, 2024
1 parent ad92c37 commit 5dca149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/StepProgressIndicator/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const StepProgressIndicator = ({ step }) => {
&& !(step === stepNames.peer && stepInfo[step].isWaitingForSubmissions)
&& !(step === stepNames.studentTraining && needed === done);

if (stepNames.peer === step && done >= needed) {
if (loadNextAction?.action && stepNames.peer === step && done >= needed) {
loadNextAction.action.labels.default = formatMessage(messages.gradeNextPeerOptional);
}
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const useSubmissionStatuses = (textResponses, uploadedFiles) => {
}
const calcFileUploadIsRequired = submissionConfig.fileResponseConfig.required && !uploadedFiles.length;
setFileUploadIsRequired(calcFileUploadIsRequired);
setPromptStatuses(retrievePromptsSubmissionStatus);
if (containsInvalidPrompts || (submissionConfig.fileResponseConfig.required && !uploadedFiles.length)) {
setPromptStatuses(retrievePromptsSubmissionStatus);
return false;
}

Expand Down

0 comments on commit 5dca149

Please sign in to comment.