From 82cf0d4b3c05bf1f394bc6c102299146cbdeb3ce Mon Sep 17 00:00:00 2001 From: kimjh11130 Date: Wed, 26 Jul 2023 11:45:43 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B0=9C=ED=91=9C=20=EA=B2=B0=EA=B3=BC?= =?UTF-8?q?=20=ED=99=95=EC=9D=B8=20=EC=A3=BC=EC=84=9D=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/MyPage.tsx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/pages/MyPage.tsx b/src/pages/MyPage.tsx index bcc2a67..6a03e10 100644 --- a/src/pages/MyPage.tsx +++ b/src/pages/MyPage.tsx @@ -21,21 +21,21 @@ const MyPage = () => { const { mutate: deleteUserPdf } = DeleteUserPdf(data?.receipt_code); const onDownloadPdf = DownloadPdf(); - const { data: schedule } = getSchedule(); - const currentDate = new Date(); - const firstAnnouncementDate = new Date(schedule?.schedules[2]?.date ?? ''); - const secondAnnouncementDate = new Date(schedule?.schedules[4]?.date ?? ''); - const { data: firstPass } = GetFirstRoundPass(); - const { data: secondPass } = GetSecondRoundPass(); - - let message; - if (firstAnnouncementDate <= currentDate && currentDate.getDate() <= secondAnnouncementDate.getDate() + 3) { - message = firstPass ? '1차 전형에 합격하였습니다!' : '1차 전형에 합격하지 못하였습니다.'; - } else if (secondAnnouncementDate <= currentDate && currentDate.getDate() <= secondAnnouncementDate.getDate() + 3) { - message = secondPass ? '최종합격되었습니다.' : '불합격입니다.'; - } else { - message = '지금은 발표기간이 아닙니다'; - } + // const { data: schedule } = getSchedule(); + // const currentDate = new Date(); + // const firstAnnouncementDate = new Date(schedule?.schedules[2]?.date ?? ''); + // const secondAnnouncementDate = new Date(schedule?.schedules[4]?.date ?? ''); + // const { data: firstPass } = GetFirstRoundPass(); + // const { data: secondPass } = GetSecondRoundPass(); + // + // let message; + // if (firstAnnouncementDate <= currentDate && currentDate.getDate() <= secondAnnouncementDate.getDate() + 3) { + // message = firstPass ? '1차 전형에 합격하였습니다!' : '1차 전형에 합격하지 못하였습니다.'; + // } else if (secondAnnouncementDate <= currentDate && currentDate.getDate() <= secondAnnouncementDate.getDate() + 3) { + // message = secondPass ? '최종합격되었습니다.' : '불합격입니다.'; + // } else { + // message = '지금은 발표기간이 아닙니다'; + // } const { data: myQnaList } = GetMyQna(); @@ -106,7 +106,7 @@ const MyPage = () => { <_ApplyButtons> - +