Skip to content

Commit 7907d73

Browse files
authored
feat: hide claim number and reenable claim (#31)
1 parent 2b31a5c commit 7907d73

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/services/rank.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ function mapCompactUsers(users: User[]) {
3737
userId,
3838
score,
3939
tag,
40-
claims: tokens.length
40+
// claims: tokens.length
4141
}))
4242
}
4343

4444
export async function getRankService(
4545
users: User[]
4646
): Promise<RankRequestResult> {
47-
const isRankEnabled = false
47+
const isRankEnabled = true
4848
if (!isRankEnabled) {
4949
return {
5050
status: 'sucess',

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type CompactUser = {
4747
userId: string
4848
score: number
4949
tag: string
50-
claims: number
50+
claims?: number
5151
softDeleted?: boolean
5252
}
5353

0 commit comments

Comments
 (0)