Skip to content

Commit

Permalink
Fixed schoolID not filling correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobellerbrock committed Sep 17, 2024
1 parent df6103e commit 969e300
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ export default function RegisterFormSettings({
university: data.university,
},
});
console.log(form.watch("schoolID"));
const [uploadedFile, setUploadedFile] = useState<File | null>(null);
const resumeLink: string = data.resume ?? c.noResumeProvidedURL;
// @ts-ignore
Expand All @@ -105,12 +106,11 @@ export default function RegisterFormSettings({
useEffect(() => {
if (universityValue != c.localUniversityName.toLowerCase()) {
form.setValue("schoolID", "NOT_LOCAL_SCHOOL");
console.log(1);
} else {
if (shortID === "NOT_LOCAL_SCHOOL") {
form.setValue("schoolID", data.schoolID);
} else {
form.setValue("schoolID", "");
} else {
form.setValue("schoolID", data.schoolID);
}
}
}, [universityValue]);
Expand Down

0 comments on commit 969e300

Please sign in to comment.