From 737401f752912dcb266803c23a554b5bf7b98e44 Mon Sep 17 00:00:00 2001 From: Liam Date: Sat, 28 Sep 2024 08:05:25 +0100 Subject: [PATCH] oops, fix pp change always showing --- src/components/player/player-header.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/components/player/player-header.tsx b/src/components/player/player-header.tsx index 5567f50..e422052 100644 --- a/src/components/player/player-header.tsx +++ b/src/components/player/player-header.tsx @@ -33,14 +33,18 @@ const playerData = [ return (

{formatPp(player.pp)}pp

- The change in your pp compared to yesterday

}> -

0 ? "text-green-400" : "text-red-400"}`} + {player.ppChange != 0 && ( + The change in your pp compared to yesterday

} > - {player.ppChange > 0 ? "+" : ""} - {formatPp(player.ppChange)}pp -

-
+

0 ? "text-green-400" : "text-red-400"}`} + > + {player.ppChange > 0 ? "+" : ""} + {formatPp(player.ppChange)}pp +

+ + )}
); },