Skip to content

Commit

Permalink
chore :: 지원자 팝업 오류 수정
Browse files Browse the repository at this point in the history
지원자 팝업 오류 수정
  • Loading branch information
phyuna0525 authored Nov 12, 2024
2 parents 7ea0a4b + 0ebe8a2 commit a9663a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/Apis/Recruitments/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,22 @@ export const useGetRecruitmentForm = (
{
queryKey: ['getRecruitmentCount', searchRecruitmentFormQueryString],
queryFn: async () => {
const { winter_intern } = searchRecruitmentFormQueryString;
const {
year,
company_name,
start,
end,
status,
winter_intern,
} = searchRecruitmentFormQueryString;
const winterIntern =
winter_intern !== null
? `&winter_intern=${winter_intern}`
: '';
const { data } = await instance.get<{ count: number }>(
`${router}/count?${winterIntern}`
`${router}/count?year=${year}${winterIntern}&company_name=${company_name}&start=${start}&end=${end}&status=${
status === '전체' || status === undefined ? '' : status
}`
);
return data;
},
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/PopUp/ApplicationPopup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function ApplicationPopup() {
student_name: '',
recruitment_id: id ? id : '',
year: date.getFullYear().toString(),
winter_intern: false,
winter_intern: true,
});

const {
Expand Down

0 comments on commit a9663a5

Please sign in to comment.