mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-19 11:20:04 +08:00
Merge pull request #760 from LAION-AI/AbdBarho-patch-1
Fix rank in leaderboard
This commit is contained in:
@@ -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,
|
||||
style: { width: "90px" },
|
||||
},
|
||||
{
|
||||
|
||||
@@ -16,7 +16,7 @@ export interface LeaderboardReply {
|
||||
}
|
||||
|
||||
export interface LeaderboardEntity {
|
||||
user_rank: number;
|
||||
rank: number;
|
||||
user_id: string;
|
||||
username: string;
|
||||
auth_method: string;
|
||||
|
||||
Reference in New Issue
Block a user