Skip to content

Commit f54be46

Browse files
committed
fix: ajustar retorno do ranking desabilitado
1 parent 004f89c commit f54be46

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/services/rank.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function mapCompactUsers(users: User[]) {
3636
return users.map(({ userId, score, tag, tokens }) => ({
3737
userId,
3838
score,
39-
tag,
39+
tag
4040
// claims: tokens.length
4141
}))
4242
}
@@ -51,7 +51,11 @@ export async function getRankService(
5151
status: 'sucess',
5252
statusCode: 200,
5353
message: 'Rank is disabled',
54-
data: []
54+
data: {
55+
ranking: [],
56+
currentUserPosition: -1,
57+
currentUserScore: 0
58+
}
5559
}
5660
}
5761

0 commit comments

Comments
 (0)