mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-28 09:58:11 +03:00
fix: don't crash on profile switching
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user