format previous score
All checks were successful
Deploy Website / docker (ubuntu-latest) (push) Successful in 2m20s

This commit is contained in:
Lee 2024-10-26 18:44:57 +01:00
parent 9626931b91
commit f3737ce7a5

@ -10,7 +10,7 @@ export function ScoreScoreBadge({ score }: ScoreBadgeProps) {
<div className="flex flex-col items-center justify-center"> <div className="flex flex-col items-center justify-center">
<p>{formatNumberWithCommas(Number(score.score.toFixed(0)))}</p> <p>{formatNumberWithCommas(Number(score.score.toFixed(0)))}</p>
{previousScore && previousScore.change && ( {previousScore && previousScore.change && (
<Tooltip display={<p>Previous Score: {previousScore.score}</p>}> <Tooltip display={<p>Previous Score: {formatNumberWithCommas(previousScore.score)}</p>}>
<Change className="text-xs" change={previousScore.change.score} /> <Change className="text-xs" change={previousScore.change.score} />
</Tooltip> </Tooltip>
)} )}