Skip to content

Commit

Permalink
fix(leaderborad): Change image src
Browse files Browse the repository at this point in the history
  • Loading branch information
MeiCloudie committed Oct 21, 2023
1 parent d93fd31 commit 0a46956
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/leaderboard/personal-achievements/Ranking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ interface RankingProps {
}

const medalImages = [
"/medals/top1.svg",
"/medals/top2.svg",
"/medals/top3.svg",
"/assets/medals/top1.svg",
"/assets/medals/top2.svg",
"/assets/medals/top3.svg",
];

const Ranking: React.FC<RankingProps> = ({
medalSrc: customMedalSrc = "/medals/normal_top.svg",
medalSrc: customMedalSrc = "/assets/medals/normal_top.svg",
top,
}) => {
const medalSrc = top <= 3 ? medalImages[top - 1] : customMedalSrc;
Expand Down

0 comments on commit 0a46956

Please sign in to comment.