Skip to content

Commit c8a0559

Browse files
authored
모집의뢰서 중복 예외처리 오류 수정 (#98)
2 parents 380a97e + 7ec45ae commit c8a0559

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/company/src/hooks/apis/useRecruitmentsApi.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,16 @@ export const useCreateRecruitmentRequest = () => {
3535
router.push("/my");
3636
},
3737
onError: (err: AxiosError<AxiosError>) => {
38+
console.log(err);
39+
3840
if (err.response?.status === 400) {
3941
toast({
4042
payload: {
4143
type: "error",
4244
message: "입력되지 않은 필드가 있습니다.",
4345
},
4446
});
45-
} else if (err.response?.data.message === "Recruitment Already Exist") {
47+
} else if (err.response?.status === 409) {
4648
toast({
4749
payload: {
4850
type: "error",

0 commit comments

Comments
 (0)