Skip to content

Commit

Permalink
Merge pull request #150 from Gamegoo-repo/design/#147
Browse files Browse the repository at this point in the history
[Feat] 상위 0%일 경우 1%로 표기
  • Loading branch information
yyypearl authored Nov 2, 2024
2 parents f9c0010 + c335d95 commit 9a50814
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/components/common/MannerLevelBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ const MannerLevelBar = (props: MannerLevelBarProps) => {
<LevelBox key={level} $isColor={recentLevel === level}>
{recentLevel === level && (
<Recent>
{mannerRank && (
<Percentage>{`상위 ${
Math.floor(mannerRank) || 0
}% 의 매너레벨`}</Percentage>
)}
<Percentage>
{`상위 ${
mannerRank !== null &&
mannerRank !== undefined &&
mannerRank > 0
? Math.floor(mannerRank)
: 1
}% 의 매너레벨`}
</Percentage>
<DownIconWrapper level={level - 1}>
<ChevronDownIcon />
</DownIconWrapper>
Expand Down

0 comments on commit 9a50814

Please sign in to comment.