Skip to content

Commit

Permalink
Feat. 비밀번호 변경 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HyerimKimm committed Feb 23, 2025
1 parent e9ce6f2 commit cc61e7f
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit cc61e7f

Please sign in to comment.