diff --git a/client/src/pages/EditProfilePage/EditProfilePage.tsx b/client/src/pages/EditProfilePage/EditProfilePage.tsx index e0ceecb..910b13a 100644 --- a/client/src/pages/EditProfilePage/EditProfilePage.tsx +++ b/client/src/pages/EditProfilePage/EditProfilePage.tsx @@ -30,7 +30,7 @@ const EditProfilePage = () => { skills: string[]; specializations: string[]; }; - + const [formData, setFormData] = useState({ email: '', nickName: '', @@ -70,19 +70,18 @@ const EditProfilePage = () => { twitter: profile.socialMediaLinks?.twitter || '', blog: profile.socialMediaLinks?.blog || '', skills: profile.skills || [], - specializations: profile.specializations || [], + specializations: profile.specializations || [], }); } }, [profile]); const handleChange = (e: ChangeEvent) => { const { name, value } = e.target; - setFormData((prevFormData) => ({ - ...prevFormData, - [name]: value, - })); - } - + setFormData((prevFormData) => ({ + ...prevFormData, + [name]: value, + })); + }; const handleSkillChange = (e: ChangeEvent) => { setSkillInput(e.target.value); @@ -118,7 +117,7 @@ const EditProfilePage = () => { } }; - const handleSpecialization = (skill: string) => { + const handleSpecialization = (skill: string) => { if (!formData.specializations.includes(skill)) { setFormData((prevData) => ({ ...prevData,