From 8accd0dfbe797c235e659ad2929fee0fd72fd46b Mon Sep 17 00:00:00 2001 From: AbdBarho Date: Mon, 16 Jan 2023 07:34:17 +0100 Subject: [PATCH] Fix rank displaying --- .../src/components/LeaderboardGridCell/LeaderboardGridCell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/components/LeaderboardGridCell/LeaderboardGridCell.tsx b/website/src/components/LeaderboardGridCell/LeaderboardGridCell.tsx index 35d83a75..f13988d8 100644 --- a/website/src/components/LeaderboardGridCell/LeaderboardGridCell.tsx +++ b/website/src/components/LeaderboardGridCell/LeaderboardGridCell.tsx @@ -8,7 +8,7 @@ import useSWRImmutable from "swr/immutable"; const columns = [ { Header: "Rank", - accessor: (item: LeaderboardEntity, rowIndex: number) => "#" + (item.user_rank + 1), + accessor: (item: LeaderboardEntity, rowIndex: number) => "#" + (item.rank + 1), style: { width: "90px" }, }, {