fix rank format on player graph
All checks were successful
deploy / deploy (push) Successful in 56s

This commit is contained in:
Lee 2023-11-05 13:42:54 +00:00
parent 3967ea76e0
commit 832f4eebe5
2 changed files with 3 additions and 3 deletions

@ -77,7 +77,7 @@ export const options: any = {
label(context: any) { label(context: any) {
switch (context.dataset.label) { switch (context.dataset.label) {
case "Rank": { case "Rank": {
return `Rank #${formatNumber(context.parsed.y.toFixed(0))}`; return `Rank #${formatNumber(Number(context.parsed.y))}`;
} }
} }
}, },

@ -91,10 +91,10 @@ export default function Score({
</div> </div>
</TooltipTrigger> </TooltipTrigger>
<TooltipContent> <TooltipContent>
<div> <>
<p className="font-bold">Difficulty</p> <p className="font-bold">Difficulty</p>
<p>{diffName}</p> <p>{diffName}</p>
</div> </>
</TooltipContent> </TooltipContent>
</Tooltip> </Tooltip>
) : ( ) : (