From 97d7ab2d0a563697f8e7a03b5be3ee1e1b3c0885 Mon Sep 17 00:00:00 2001 From: Liam Date: Sun, 13 Oct 2024 01:28:49 +0100 Subject: [PATCH] cookies are async now? --- projects/website/src/app/(pages)/player/[...slug]/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/website/src/app/(pages)/player/[...slug]/page.tsx b/projects/website/src/app/(pages)/player/[...slug]/page.tsx index b44ff3f..e01bba1 100644 --- a/projects/website/src/app/(pages)/player/[...slug]/page.tsx +++ b/projects/website/src/app/(pages)/player/[...slug]/page.tsx @@ -58,7 +58,8 @@ const getPlayerData = async ({ params }: Props, fetchScores: boolean = true): Pr const playerToken = await scoresaberService.lookupPlayer(id); const player = - playerToken && (await getScoreSaberPlayerFromToken(playerToken, config.siteApi, cookies().get("playerId")?.value)); + playerToken && + (await getScoreSaberPlayerFromToken(playerToken, config.siteApi, (await cookies()).get("playerId")?.value)); let scores: ScoreSaberPlayerScoresPageToken | undefined; if (fetchScores) { scores = await scoresaberService.lookupPlayerScores({