diff --git a/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx b/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx index d06cc96f2..1e815908f 100644 --- a/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx +++ b/client/src/app/pages/dashboard/games/_game/_playtype/GPTChartPage.tsx @@ -147,9 +147,11 @@ function InternalGPTChartPage({ userMap.set(user.id, user); } } - - // Add current user, since there's no guarantee they are returned from either API. - userMap.set(user.id, user); + + if (user) { + // Add current user, since there's no guarantee they are returned from either API. + userMap.set(user.id, user); + } return (