Skip to content

Commit fc53e31

Browse files
committed
refact: 이용약관 동의 에러메세지 수정
1 parent 8aab0e6 commit fc53e31

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/features/join/hooks/useUserHook.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ export const useUserUpdate = () => {
2222
export const useAgreeTerms = () => {
2323
return useMutation({
2424
mutationFn: agreeTerms,
25-
onError: (error) => {
26-
alert('동의 처리 실패');
27-
console.error('이용약관 동의 실패', error);
25+
onError: () => {
26+
alert('약관 동의 처리에 실패했습니다.');
2827
}
2928
});
3029
};

src/pages/join/InfoInputPage.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ const InfoInputPage = () => {
6464
alert('회원가입이 완료되었습니다.');
6565
navigate('/');
6666
},
67-
onError: () => {
68-
alert('약관 동의 처리에 실패했습니다.');
69-
},
7067
}
7168
);
7269
},

0 commit comments

Comments
 (0)