fix whatever the fuck this bug was
Some checks failed
Deploy Website / docker (ubuntu-latest) (push) Failing after 9s

This commit is contained in:
Lee 2024-10-22 18:33:00 +01:00
parent cf84ebe456
commit ef287d6c3c

@ -133,14 +133,18 @@ export default function PlayerStats({ player }: Props) {
return <div key={index} />;
}
const { tooltip, value } = toRender;
const stat = <StatValue key={index} color={badge.color} name={badge.name} value={value} />;
const stat = <StatValue color={badge.color} name={badge.name} value={value} />;
return tooltip ? (
<Tooltip asChild={false} display={tooltip} key={index}>
{stat}
</Tooltip>
) : (
stat
return (
<div key={index}>
{tooltip ? (
<Tooltip asChild={false} display={tooltip}>
{stat}
</Tooltip>
) : (
stat
)}
</div>
);
})}
</div>