Skip to content

Commit

Permalink
feat: 회원가입 완료시 토스트 메시지 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejha committed Oct 5, 2023
1 parent f03df8e commit 939598a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ export const RegisterProvider = ({ children }: PropsWithChildren) => {
mbti: stringfiedMBTI,
}),
{
onSuccess: () => router.replace(Path.MAIN_PAGE),
onSuccess: () => {
toast.success("회원가입이 완료되었습니다.");
router.replace(Path.MAIN_PAGE);
},
onError: (error) => alert(error),
},
);
Expand Down

0 comments on commit 939598a

Please sign in to comment.