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);