fix player data not showing when claiming the profile
Some checks failed
Deploy Backend / deploy (push) Failing after 1m5s
Deploy Website / deploy (push) Failing after 1m29s

This commit is contained in:
Lee
2024-10-17 02:40:18 +01:00
parent ae4e6912e5
commit 42d133bbbb
5 changed files with 9 additions and 38 deletions

View File

@ -55,8 +55,7 @@ const getPlayerData = async ({ params }: Props, fetchScores: boolean = true): Pr
}
const playerToken = await scoresaberService.lookupPlayer(id);
const player =
playerToken && (await getScoreSaberPlayerFromToken(playerToken, config.siteApi, await getCookieValue("playerId")));
const player = playerToken && (await getScoreSaberPlayerFromToken(playerToken, config.siteApi));
let scores: ScoreSaberPlayerScoresPageToken | undefined;
if (fetchScores) {
scores = await scoresaberService.lookupPlayerScores({