diff --git a/src/components/leaderboard/Leaderboard.tsx b/src/components/leaderboard/Leaderboard.tsx index 64abdee..0e3acea 100644 --- a/src/components/leaderboard/Leaderboard.tsx +++ b/src/components/leaderboard/Leaderboard.tsx @@ -115,11 +115,13 @@ export default function Leaderboard({ id, page }: LeaderboardProps) {

Status: {ranked ? "Ranked" : "Unranked"}

-
-

Stars:

- -

{stars}

-
+ {ranked && ( +
+

Stars:

+ +

{stars}

+
+ )}

Plays: {formatNumber(plays)} ({dailyPlays} in the last day)

diff --git a/src/utils/scoresaber/api.ts b/src/utils/scoresaber/api.ts index 68f98a6..d4f24c3 100644 --- a/src/utils/scoresaber/api.ts +++ b/src/utils/scoresaber/api.ts @@ -125,6 +125,15 @@ async function fetchScores( }; } +/** + * Gets the players scores with beatsaver data from the given page + * + * @param playerId the id of the player + * @param page the page to get the scores from + * @param searchType the type of search to perform + * @param limit the limit of scores to get + * @returns the scores with beatsaver data + */ async function fetchScoresWithBeatsaverData( playerId: string, page: number = 1,