Skip to content

Commit

Permalink
fix(battlegrounds): banned tribe widget
Browse files Browse the repository at this point in the history
Fixes #4532
  • Loading branch information
beheh committed Feb 19, 2024
1 parent 178dc23 commit 460cdb0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ public void UpdateSectionsVisibilities()

private void UpdateBannedTribes()
{
var allRaces = _db.Value.Races;
var availableRaces = BattlegroundsUtils.GetAvailableRaces(Core.Game.CurrentGameStats?.GameId) ?? allRaces;
var unavailableRaces = allRaces.Where(x => !availableRaces.Contains(x) && x != Race.INVALID && x != Race.ALL)
var allRaces = _db.Value.Races.Where(x => x != Race.INVALID && x != Race.ALL).ToList();
var availableRaces = BattlegroundsUtils.GetAvailableRaces(Core.Game.CurrentGameStats?.GameId)?.ToList() ?? allRaces;
var unavailableRaces = allRaces.Where(x => !availableRaces.Contains(x))
.OrderBy(t => HearthDbConverter.GetLocalizedRace(t) ?? "")
.ToList();

Expand Down

0 comments on commit 460cdb0

Please sign in to comment.