From 275dcfd845c9039a91d033afb91b7119d9a01848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=80=EC=9B=90?= Date: Tue, 4 Feb 2025 13:26:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=94=84=EB=A1=9C=ED=95=84=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EC=8B=9C=20=ED=98=84=EC=9E=AC=20=EC=9C=A0=EC=A0=80=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EB=B3=B4=EC=97=AC=EC=A3=BC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/my-page/EditProfilePage.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/my-page/EditProfilePage.tsx b/src/pages/my-page/EditProfilePage.tsx index acbf613..a3fc509 100644 --- a/src/pages/my-page/EditProfilePage.tsx +++ b/src/pages/my-page/EditProfilePage.tsx @@ -14,12 +14,14 @@ import useUserStore from '@/store/useUserStore'; import handleAxiosError from '@/libs/apis/axiosError.api'; const EditProfilePage = () => { + const { user } = useUserStore(); + const profileForm = useForm>({ resolver: zodResolver(profileEditVerificationSchema), defaultValues: { - nickName: '', - profilePicture: undefined, - accountNumber: '', + nickName: user?.nickName || '', + profilePicture: user?.profilePicture || undefined, + accountNumber: user?.accountNumber || '', }, mode: 'onSubmit', });