fix clicking global rank taking you to the wrong page and update url when clicking a player on the ranking page
Some checks failed
Deploy Website / deploy (push) Has been cancelled

This commit is contained in:
Lee 2024-10-11 03:42:42 +01:00
parent 4894e0597c
commit 544e850540

@ -42,7 +42,7 @@ const playerData = [
const rankChange = statisticChange?.rank ?? 0;
return (
<Link href={`/ranking/${player.country}/${player.rankPages.global}`}>
<Link href={`/ranking/${player.rankPages.global}`}>
<div className="text-gray-300 flex gap-1 items-center hover:brightness-75 transition-all transform-gpu">
<p>#{formatNumberWithCommas(player.rank)}</p>
{rankChange != 0 && renderChange(rankChange, <p>The change in your rank compared to yesterday</p>)}