diff --git a/mosu-app/src/widgets/competition/InfoSection.tsx b/mosu-app/src/widgets/competition/InfoSection.tsx index 9f655aba..99502f9b 100644 --- a/mosu-app/src/widgets/competition/InfoSection.tsx +++ b/mosu-app/src/widgets/competition/InfoSection.tsx @@ -13,7 +13,7 @@ export const InfoSection = () => {
-

우리 학교에서 신청자가 제일 많으면,

+

우리 학교에서 신청수가 제일 많으면,

우리 학교 전원 전액 환급

@@ -38,10 +38,10 @@ export const InfoSection = () => { />
diff --git a/mosu-app/src/widgets/competition/RankTableSection.tsx b/mosu-app/src/widgets/competition/RankTableSection.tsx index 75cbf957..3b96d72b 100644 --- a/mosu-app/src/widgets/competition/RankTableSection.tsx +++ b/mosu-app/src/widgets/competition/RankTableSection.tsx @@ -34,16 +34,28 @@ export const RankTableSection = ({ topRatedSchools }: RankTableSectionProps) => ); } - const prevSchoolCount = topRatedSchools[index - 1].paidApplicationCount; - const gap = prevSchoolCount - school.paidApplicationCount; - const prevRank = index; + let targetRank: number; + let targetSchoolCount: number; + + if (rank >= 2 && rank <= 5) { + targetRank = 1; + targetSchoolCount = topRatedSchools[0].paidApplicationCount; + } else if (rank >= 6 && rank <= 20) { + targetRank = 5; + targetSchoolCount = topRatedSchools[4]?.paidApplicationCount || 0; + } else { + targetRank = 20; + targetSchoolCount = topRatedSchools[19]?.paidApplicationCount || 0; + } + + const gap = targetSchoolCount - school.paidApplicationCount; return ( );