Skip to content

Commit

Permalink
Merge pull request #53 from Owlvernyte/leaderboard-fix-image-src
Browse files Browse the repository at this point in the history
[FIX] LeaderBoard - Change Image Src
  • Loading branch information
fieztazica authored Oct 21, 2023
2 parents d93fd31 + 0a46956 commit 312870e
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 312870e

Please sign in to comment.