fix clicking global rank taking you to the wrong page and update url when clicking a player on the ranking page
All checks were successful
Deploy Website / deploy (push) Successful in 3m30s

This commit is contained in:
Lee 2024-10-11 03:42:50 +01:00
parent 544e850540
commit 0e4feb4181

View File

@ -35,7 +35,7 @@ export function PlayerRanking({ player, isCountry }: PlayerRankingProps) {
/>
</Avatar>
<CountryFlag code={player.country} size={14} />
<Link className="transform-gpu transition-all hover:text-blue-500" href={`/player/${player.id}/top/1`}>
<Link className="transform-gpu transition-all hover:text-blue-500" href={`/player/${player.id}`}>
<p
className={
player.id == settings?.playerId ? "transform-gpu text-pp transition-all hover:brightness-75" : ""