From 6dfd53f98322325ffc40c59f90dd4a04ce7717fa Mon Sep 17 00:00:00 2001 From: Minkyu0424 Date: Fri, 7 Jun 2024 15:09:18 +0900 Subject: [PATCH 1/2] =?UTF-8?q?:ambulance:[hotfix]:=20=EB=AA=A8=EB=8D=B8?= =?UTF-8?q?=20=ED=99=9C=EC=84=B1=ED=99=94=20=EC=9A=94=EC=B2=AD=20=EC=A0=95?= =?UTF-8?q?=EC=83=81=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/admin/model/ModelInfoModal.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/app/components/admin/model/ModelInfoModal.tsx b/src/app/components/admin/model/ModelInfoModal.tsx index e1c857e..a71308d 100644 --- a/src/app/components/admin/model/ModelInfoModal.tsx +++ b/src/app/components/admin/model/ModelInfoModal.tsx @@ -31,7 +31,6 @@ const ModelInfoModal = ({ closeModal, data, status }: ModelInfoModalProps) => { const verRes = await fetch( `${process.env.NEXT_PUBLIC_NEXT_SERVER}/api/admin/model/version?page=${0}`, - { method: 'POST' }, ) const verData = await verRes.json() From 84c952e8af108c833b7719d3950cd10aaba87728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=82=99=EB=8F=84?= Date: Fri, 7 Jun 2024 15:12:05 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20[hotfix]:=20?= =?UTF-8?q?=EC=9E=90=EA=B8=B0=EC=86=8C=EA=B0=9C=EC=84=9C=20=EC=A7=81?= =?UTF-8?q?=EB=AC=B4=20=EC=97=AD=EB=9F=89=20=EB=B6=84=EC=84=9D=20=EC=A7=81?= =?UTF-8?q?=EB=AC=B4=20=EC=A0=81=ED=95=A9=EB=8F=84=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/coverletter/AiAnalysis.tsx | 8 +++++++- src/app/components/mypage/MyCovletCardDetail.tsx | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/app/components/coverletter/AiAnalysis.tsx b/src/app/components/coverletter/AiAnalysis.tsx index d153957..a6a8f8e 100644 --- a/src/app/components/coverletter/AiAnalysis.tsx +++ b/src/app/components/coverletter/AiAnalysis.tsx @@ -30,6 +30,12 @@ const AiAnalysis = ({ analysisData }: AiAnalysisProps) => { fetchData() }, []) + const jobSuitability = + Number(analysisData?.job_suitability) > 95 + ? Number(analysisData?.job_suitability) - 5 + : analysisData?.job_suitability + console.log(jobSuitability) + return (
@@ -42,7 +48,7 @@ const AiAnalysis = ({ analysisData }: AiAnalysisProps) => { 님과 {transKeyword(analysisData?.job_keyword || '')}의 직무 적합도는 - {analysisData?.job_suitability}% + {jobSuitability}% 입니다. diff --git a/src/app/components/mypage/MyCovletCardDetail.tsx b/src/app/components/mypage/MyCovletCardDetail.tsx index b629c75..e82e3db 100644 --- a/src/app/components/mypage/MyCovletCardDetail.tsx +++ b/src/app/components/mypage/MyCovletCardDetail.tsx @@ -86,6 +86,12 @@ const MyCovletCardDetail = ({ const percentage = Math.ceil(roundedPercentage) + const JobSuitability = + Number(percentage) > 95 + ? Number(percentage) - 5 + : percentage + console.log(jobSuitability) + const onEditClick = () => { setCoverLetterData({ coverLetterId, @@ -471,7 +477,7 @@ const MyCovletCardDetail = ({ 님과 {jobKeyword}의 직무 적합도는 - {percentage}% + {JobSuitability}% 입니다.