diff --git a/src/pages/sinitto/mypage/components/profile-box/SinittoProfileBox.tsx b/src/pages/sinitto/mypage/components/profile-box/SinittoProfileBox.tsx index 053c7f57..d40e3fdf 100644 --- a/src/pages/sinitto/mypage/components/profile-box/SinittoProfileBox.tsx +++ b/src/pages/sinitto/mypage/components/profile-box/SinittoProfileBox.tsx @@ -27,15 +27,19 @@ const SinittoProfileBox = ({ isEditing, setIsEditing }: Props) => { }, [isEditing, data]); const handleSaveClick = () => { - modifySinittoInfoMutation.mutate( - { ...data, name, phoneNumber }, - { - onSuccess: () => { - setIsEditing(false); - refetch(); - }, - } - ); + const modifiedSinittoInfo = { + name: name, + phoneNumber: phoneNumber, + email: data?.email as string, + accountNumber: data?.accountNumber as string, + bankName: data?.bankName as string, + }; + modifySinittoInfoMutation.mutate(modifiedSinittoInfo, { + onSuccess: () => { + setIsEditing(false); + refetch(); + }, + }); }; if (isLoading) return