Skip to content

Commit

Permalink
simplify diff
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed May 17, 2024
1 parent 65a264d commit ac80862
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/app/testQueue/TestCardForm/TestCardForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,8 @@ const TestCardForm = ({

const submitForm = async (forceSubmit: boolean = false) => {
setHasAttemptedSubmit(true);
const isValidForm = validateForm();
if (!isValidForm) return;
if (!areAoeQuestionsComplete() && !forceSubmit) return;
if (!validateForm()) return;
if (!forceSubmit && !areAoeQuestionsComplete()) return;

trackSubmitTestResult();
setIsSubmitModalOpen(false);
Expand Down

0 comments on commit ac80862

Please sign in to comment.