From cc61e7fc15105fda524681dac195234ff3a9f8f7 Mon Sep 17 00:00:00 2001 From: HyerimKimm <50258232+HyerimKimm@users.noreply.github.com> Date: Sun, 23 Feb 2025 23:46:55 +0900 Subject: [PATCH] =?UTF-8?q?Feat.=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../password_update_modal/PasswordUpdateModal.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pages/my_page/profile_page/components/password_update_modal/PasswordUpdateModal.tsx b/src/pages/my_page/profile_page/components/password_update_modal/PasswordUpdateModal.tsx index b03c835..df86a50 100644 --- a/src/pages/my_page/profile_page/components/password_update_modal/PasswordUpdateModal.tsx +++ b/src/pages/my_page/profile_page/components/password_update_modal/PasswordUpdateModal.tsx @@ -27,7 +27,17 @@ const PasswordUpdateModal = ({ onClose }: { onClose: () => void }) => { return; } - mutate(methods.getValues(`password`), methods.getValues(`newPassword`)); + mutate( + { + originalPassword: methods.getValues(`password`), + newPassword: methods.getValues(`newPassword`), + }, + { + onSuccess: () => { + onClose(); + }, + }, + ); }; return (