Skip to content

Commit

Permalink
Merge pull request #244 from Meetfolio-Project-CodeZ-Team/develop
Browse files Browse the repository at this point in the history
merge to main
  • Loading branch information
NAKDO authored Jun 7, 2024
2 parents fbd4fcf + cca8103 commit 7cfe35b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/app/components/admin/model/ModelInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
8 changes: 7 additions & 1 deletion src/app/components/coverletter/AiAnalysis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className="w-[1000px] h-[1000px] mb-[100px] relative mt-[30px] items-center justify-center mx-auto bg-gray-50 rounded-[15px]">
<div className="w-[981px] h-[1000px] left-0 top-0 flex items-center justify-center mx-auto relative ">
Expand All @@ -42,7 +48,7 @@ const AiAnalysis = ({ analysisData }: AiAnalysisProps) => {
님과 {transKeyword(analysisData?.job_keyword || '')}의 직무 적합도는
</span>
<span className="bg-[#D8E9FF] text-black px-2 py-1 rounded-md text-3xl font-bold">
{analysisData?.job_suitability}%
{jobSuitability}%
</span>
<span className="text-black text-3xl font-bold leading-[45px]">
입니다.
Expand Down
8 changes: 7 additions & 1 deletion src/app/components/mypage/MyCovletCardDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -471,7 +477,7 @@ const MyCovletCardDetail = ({
님과 {jobKeyword}의 직무 적합도는
</span>
<span className="bg-[#D8E9FF] text-black px-2 py-1 rounded-md text-3xl font-bold">
{percentage}%
{JobSuitability}%
</span>
<span className="text-black text-3xl font-bold leading-[45px]">
입니다.
Expand Down

0 comments on commit 7cfe35b

Please sign in to comment.