Skip to content

Commit

Permalink
♻️ Refactor: 응답 성공 여부 message로 분별하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-paik committed Nov 19, 2023
1 parent bb5e99f commit f1c0076
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ProfileSettingPage = () => {

const { mutate: signup } = useMutation('signup', postUserSignup, {
onSuccess: (res) => {
if (res.status === 200) {
if (res.message === "회원가입 성공") {
navigate('/login');
} else {
setIsError(true);
Expand Down

0 comments on commit f1c0076

Please sign in to comment.