diff --git a/client/src/components/user/UGPTRankingData.tsx b/client/src/components/user/UGPTRankingData.tsx index b1f6a4b53..7eaa524e1 100644 --- a/client/src/components/user/UGPTRankingData.tsx +++ b/client/src/components/user/UGPTRankingData.tsx @@ -16,6 +16,11 @@ export default function RankingData({ } & GamePT) { const alg = useProfileRatingAlg(game, playtype); + // weird react edge case where rankingData and alg desynchronise. + if (!(alg in rankingData)) { + return <>Loading...; + } + const extendData = []; for (const k in rankingData) {