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
Some checks failed
Deploy Website / deploy (push) Has been cancelled
This commit is contained in:
parent
4894e0597c
commit
544e850540
@ -42,7 +42,7 @@ const playerData = [
|
|||||||
const rankChange = statisticChange?.rank ?? 0;
|
const rankChange = statisticChange?.rank ?? 0;
|
||||||
|
|
||||||
return (
|
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">
|
<div className="text-gray-300 flex gap-1 items-center hover:brightness-75 transition-all transform-gpu">
|
||||||
<p>#{formatNumberWithCommas(player.rank)}</p>
|
<p>#{formatNumberWithCommas(player.rank)}</p>
|
||||||
{rankChange != 0 && renderChange(rankChange, <p>The change in your rank compared to yesterday</p>)}
|
{rankChange != 0 && renderChange(rankChange, <p>The change in your rank compared to yesterday</p>)}
|
||||||
|
Reference in New Issue
Block a user