Skip to content

Commit

Permalink
remove an extra return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed May 17, 2024
1 parent 5e382e1 commit 65a264d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/app/testQueue/TestCardForm/TestCardForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,19 +281,19 @@ const TestCardForm = ({
state,
whichAOEFormOption
);
if (aoeValidationMessage === AoeValidationErrorMessages.COMPLETE)
if (aoeValidationMessage === AoeValidationErrorMessages.COMPLETE) {
return true;
}
if (aoeValidationMessage === AoeValidationErrorMessages.INCOMPLETE) {
if (whichAOEFormOption === AOEFormOption.COVID) {
setIsSubmitModalOpen(true);
return false;
} else {
showError(
"Please complete the required questions",
"Invalid test questionnaire"
);
return false;
}
return false;
}
if (
aoeValidationMessage ===
Expand Down

0 comments on commit 65a264d

Please sign in to comment.