From bacd1387eaf41fe170d030b992e3cb6a86f0fffb Mon Sep 17 00:00:00 2001 From: Qwasyx Date: Sun, 10 Dec 2023 05:56:37 +0100 Subject: [PATCH] reduce cases of too many pfps showing --- .../UI/Leaderboard/ScoreSaberLeaderboardViewController.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ScoreSaber/UI/Leaderboard/ScoreSaberLeaderboardViewController.cs b/ScoreSaber/UI/Leaderboard/ScoreSaberLeaderboardViewController.cs index 78a5538..84d225c 100644 --- a/ScoreSaber/UI/Leaderboard/ScoreSaberLeaderboardViewController.cs +++ b/ScoreSaber/UI/Leaderboard/ScoreSaberLeaderboardViewController.cs @@ -274,6 +274,9 @@ public enum UploadStatus { if (_currentLeaderboardRefreshId == refreshId) { LeaderboardMap leaderboardData = await _leaderboardService.GetLeaderboardData(difficultyBeatmap, scope, leaderboardPage, _playerDataModel.playerData.playerSpecificSettings, _filterAroundCountry); + if (_currentLeaderboardRefreshId != refreshId) { + return; // we need to check this again, since some time may have passed due to waiting for leaderboard data + } SetRankedStatus(leaderboardData.leaderboardInfoMap.leaderboardInfo); List leaderboardTableScoreData = leaderboardData.ToScoreData(); int playerScoreIndex = GetPlayerScoreIndex(leaderboardData);