From a19f9c4ac2e6dad2fce7847317ff1671dc83cce4 Mon Sep 17 00:00:00 2001 From: Christian Walker Date: Sun, 11 Aug 2024 21:17:13 -0400 Subject: [PATCH] Update for linting --- .../components/registration/RegisterForm.tsx | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/apps/web/src/components/registration/RegisterForm.tsx b/apps/web/src/components/registration/RegisterForm.tsx index 3432528a..072dc3b2 100644 --- a/apps/web/src/components/registration/RegisterForm.tsx +++ b/apps/web/src/components/registration/RegisterForm.tsx @@ -94,22 +94,16 @@ export default function RegisterForm({ defaultEmail }: RegisterFormProps) { }, }); - const { isSubmitSuccessful, isSubmitted, errors} = form.formState; + const { isSubmitSuccessful, isSubmitted, errors } = form.formState; const hasErrors = !isSubmitSuccessful && isSubmitted; - useEffect(() => { - console.log("errors are", errors); - },[errors]); - - const [uploadedFile, setUploadedFile] = useState(null); const [skills, setSkills] = useState([]); const [isLoading, setIsLoading] = useState(false); const universityValue = form.watch("university"); const bioValue = form.watch("bio"); - // wtf is this useEffect(() => { if (universityValue != c.localUniversityName.toLowerCase()) { form.setValue("shortID", "NOT_LOCAL_SCHOOL"); @@ -557,7 +551,6 @@ export default function RegisterForm({ defaultEmail }: RegisterFormProps) { onSelect={( value, ) => { - form.setValue( "university", value, @@ -1214,11 +1207,12 @@ export default function RegisterForm({ defaultEmail }: RegisterFormProps) { /> - { - hasErrors && ( -

Something doesn't look right. Please check your inputs.

- ) - } + {hasErrors && ( +

+ Something doesn't look right. Please check your + inputs. +

+ )}