We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 380a97e + 7ec45ae commit c8a0559Copy full SHA for c8a0559
apps/company/src/hooks/apis/useRecruitmentsApi.ts
@@ -35,14 +35,16 @@ export const useCreateRecruitmentRequest = () => {
35
router.push("/my");
36
},
37
onError: (err: AxiosError<AxiosError>) => {
38
+ console.log(err);
39
+
40
if (err.response?.status === 400) {
41
toast({
42
payload: {
43
type: "error",
44
message: "입력되지 않은 필드가 있습니다.",
45
46
});
- } else if (err.response?.data.message === "Recruitment Already Exist") {
47
+ } else if (err.response?.status === 409) {
48
49
50
0 commit comments