From 14e1cfccba8db5108c4739599c96c215a7c54766 Mon Sep 17 00:00:00 2001 From: Nikita Savenko Date: Wed, 27 Dec 2023 10:44:05 +0200 Subject: [PATCH] hotfix --- client/src/modules/ProfileEditModal/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/modules/ProfileEditModal/index.tsx b/client/src/modules/ProfileEditModal/index.tsx index 865db8e..d9c86b7 100644 --- a/client/src/modules/ProfileEditModal/index.tsx +++ b/client/src/modules/ProfileEditModal/index.tsx @@ -16,7 +16,6 @@ import { yupResolver } from "@hookform/resolvers/yup"; import { useForm } from "react-hook-form"; import { ProfileSchema, ProfileSchemaType } from "src/validations"; import { updateUserById } from "src/services/supabase/user"; -import { useReload } from "src/hooks"; type ProfileModalProps = Pick; const ProfileEditModal: FC = ({ isOpen, onOpenChange }) => { @@ -27,7 +26,6 @@ const ProfileEditModal: FC = ({ isOpen, onOpenChange }) => { const [isLoading, setIsLoading] = useState(false); const { user } = useAuth(); - const { reload } = useReload(); const { register, @@ -96,8 +94,8 @@ const ProfileEditModal: FC = ({ isOpen, onOpenChange }) => { if (!user) return; updateUserById(user?.id, submitData.name, verifImageUrl).then((response) => { if (response) { - reload(); closeAuthModal(); + location.reload(); } }); };