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} />; return <div key={index} />;
} }
const { tooltip, value } = toRender; 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 ? ( return (
<Tooltip asChild={false} display={tooltip} key={index}> <div key={index}>
{stat} {tooltip ? (
</Tooltip> <Tooltip asChild={false} display={tooltip}>
) : ( {stat}
stat </Tooltip>
) : (
stat
)}
</div>
); );
})} })}
</div> </div>