From 4a9eb0e32bb8a314da1cda96b57c9e6ee13c6f6f Mon Sep 17 00:00:00 2001 From: hajorg Date: Wed, 4 Dec 2024 14:13:56 +0100 Subject: [PATCH] fix: resolve visual glitch with validateBeforeConfirmation function --- src/views/SubmissionView/hooks/useSubmissionValidationStatus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/SubmissionView/hooks/useSubmissionValidationStatus.js b/src/views/SubmissionView/hooks/useSubmissionValidationStatus.js index 9ce9c618..a2265eb8 100644 --- a/src/views/SubmissionView/hooks/useSubmissionValidationStatus.js +++ b/src/views/SubmissionView/hooks/useSubmissionValidationStatus.js @@ -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; }