oops, fix pp change always showing
All checks were successful
Deploy / deploy (push) Successful in 2m43s

This commit is contained in:
Lee 2024-09-28 08:05:25 +01:00
parent 0b87f36ded
commit 737401f752

@ -33,7 +33,10 @@ const playerData = [
return ( return (
<div className="text-pp flex gap-1 items-center"> <div className="text-pp flex gap-1 items-center">
<p>{formatPp(player.pp)}pp</p> <p>{formatPp(player.pp)}pp</p>
<Tooltip display={<p>The change in your pp compared to yesterday</p>}> {player.ppChange != 0 && (
<Tooltip
display={<p>The change in your pp compared to yesterday</p>}
>
<p <p
className={`text-sm ${player.ppChange > 0 ? "text-green-400" : "text-red-400"}`} className={`text-sm ${player.ppChange > 0 ? "text-green-400" : "text-red-400"}`}
> >
@ -41,6 +44,7 @@ const playerData = [
{formatPp(player.ppChange)}pp {formatPp(player.ppChange)}pp
</p> </p>
</Tooltip> </Tooltip>
)}
</div> </div>
); );
}, },