Fix Leaderboards Tab

Now that we have some test data, it wasn't showing up in the leaderboards tab; this fixes it to ensure (1) that the right ID is being passed to UpdateRow and (2) the map of leaderboard entries is being populated correctly.
This commit is contained in:
LillyJadeKatrin
2024-07-12 21:39:46 -04:00
parent 321c4649a5
commit 0108ecebcb
2 changed files with 18 additions and 2 deletions

View File

@ -87,7 +87,7 @@ void AchievementLeaderboardWidget::UpdateData(bool clean_all)
}
for (auto row : m_leaderboard_order)
{
UpdateRow(row.second);
UpdateRow(row.first);
}
}
@ -98,7 +98,7 @@ void AchievementLeaderboardWidget::UpdateData(
{
if (update_ids.contains(row.first))
{
UpdateRow(row.second);
UpdateRow(row.first);
}
}
}