Skip to content

Commit

Permalink
fix: resolve visual glitch with validateBeforeConfirmation function
Browse files Browse the repository at this point in the history
  • Loading branch information
hajorg committed Dec 4, 2024
1 parent 567a11b commit 4a9eb0e
Showing 1 changed file with 1 addition and 1 deletion.
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 4a9eb0e

Please sign in to comment.