diff --git a/client/src/pages/Onboard/(components)/UsernameAndPictures.tsx b/client/src/pages/Onboard/(components)/UsernameAndPictures.tsx index 65961576..f1a24649 100644 --- a/client/src/pages/Onboard/(components)/UsernameAndPictures.tsx +++ b/client/src/pages/Onboard/(components)/UsernameAndPictures.tsx @@ -16,8 +16,7 @@ const UsernameAndAvatar: React.FC = ({ onNext }) => { setValue("profile_image", avatars[index].profile) } - const handleSubmit = (e: React.FormEvent) => { - e.preventDefault() + const handleNext = () => { if (profileUrl !== "") { onNext() } @@ -28,31 +27,29 @@ const UsernameAndAvatar: React.FC = ({ onNext }) => {

Choose an Avatar

-
-
- {avatars.map((avatar, index) => ( - {`Avatar handleAvatarSelect(index)} - /> - ))} -
-
- -
-
+
+ {avatars.map((avatar, index) => ( + {`Avatar handleAvatarSelect(index)} + /> + ))} +
+
+ +