Skip to content

Commit

Permalink
fix(BattlegroundsQuestPickingViewModel): add defensive check against …
Browse files Browse the repository at this point in the history
…invalid quests
  • Loading branch information
beheh committed Dec 13, 2023
1 parent 4b808de commit 6988df1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public Visibility Visibility

public async Task OnBattlegroundsQuest(Entity questEntity)
{
if(!questEntity.HasCardId)
return;
_entities.Add(questEntity);
if(_entities.Count == ExpectedQuestCount())
await Update();
Expand Down

0 comments on commit 6988df1

Please sign in to comment.