Skip to content

Commit

Permalink
Update RankIcon.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Manwe-777 committed May 14, 2024
1 parent 36af4c9 commit 833ef92
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/RankIcon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ export interface RankIconProps {
}

export default function RankIcon(props: RankIconProps): JSX.Element {
const { rank, tier, style, step, format, percentile, leaderboardPlace } =
props;
const { tier, style, step, format, percentile, leaderboardPlace } = props;

let { rank } = props;

if (percentile !== 0 && !rank) rank = "Mythic";

const rankIndex = getRankIndex(rank, tier);

const newStyle = { ...{ width: "48px", height: "48px" }, ...style };
Expand Down

0 comments on commit 833ef92

Please sign in to comment.