don't show stat change if player is inactive or banned
All checks were successful
Deploy Website / deploy (push) Successful in 4m52s

This commit is contained in:
Lee 2024-10-17 03:23:34 +01:00
parent b8553c3138
commit 82b0a0ee71

View File

@ -71,6 +71,11 @@ const renderChange = (player: ScoreSaberPlayer, type: "rank" | "countryRank" | "
);
};
// Don't show change if the player is banned or inactive
if (player.banned || player.inactive) {
return children;
}
return (
<Tooltip
side="bottom"