Skip to content

Commit 742a15a

Browse files
author
nightcityblade
committed
fix: remove fractional digits from top-list scores
1 parent 84304c4 commit 742a15a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

components/top-list.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export function TopList({ userResults }: Props) {
3939
{data.titleUrl ? (
4040
<a
4141
href={data.titleUrl}
42+
title="Open on GitHub"
4243
target="_blank"
4344
rel="noopener noreferrer"
4445
className="text-primary hover:underline"
@@ -69,7 +70,7 @@ export function TopList({ userResults }: Props) {
6970
</div>
7071
<div className="text-right">
7172
<p className="text-sm font-semibold text-foreground">
72-
{(data.score ?? 0).toFixed(2)}
73+
{data.score ?? 0}
7374
</p>
7475
<p className="text-[11px] text-muted-foreground">
7576
{t("comparsion.score")}

0 commit comments

Comments
 (0)