Skip to content

Commit 6e2a15b

Browse files
committed
Add fix
1 parent e221dfc commit 6e2a15b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/hooks/useCheck.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const validateField = (name: string, value: string, setValidationErrors:Function
7070
const requiredFields = [
7171
"rollNumber", "branch", "year", "phoneNumber",
7272
"githubProfile", "linkedinProfile", "codechefProfile",
73-
"resume", "whyACM", "cgpa", "role"
73+
"resume", "whyACM", "cgpa", "role", "role2"
7474
];
7575

7676
if (hasMembership) {

src/pages/Form.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ function Form() {
6363
role: "",
6464
role2: "",
6565
}));
66+
67+
setValidationErrors((prev) => ({
68+
...prev,
69+
role: false,
70+
role2: false,
71+
}));
6672
},[formData.year]);
6773

6874
useEffect(() => {

0 commit comments

Comments
 (0)