Skip to content

Commit 4b04140

Browse files
Fix the timout for the member selection error (#417)
1 parent 2fb1067 commit 4b04140

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/components/pages/IsaacCompetition/EntryForm/CompetitionEntryForm.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ export const CompetitionEntryForm = ({ handleTermsClick }: CompetitionEntryFormP
7373
if (selectedValues.length > 4) {
7474
setMemberSelectionError("Limit of 4 students reached. To select a new student, remove one first.");
7575

76+
setTimeout(() => {
77+
setMemberSelectionError("");
78+
}, 10000);
79+
7680
return;
7781
}
7882

7983
setMemberSelectionError("");
8084
setSelectedMembers(selectedValues);
81-
82-
setTimeout(() => {
83-
setMemberSelectionError("");
84-
}, 10000);
8585
};
8686

8787
const isSchoolValid = isSchoolValidForCompetition();

0 commit comments

Comments
 (0)