Skip to content

Commit

Permalink
fix(combat): combat page shouldn't fail when no fight exists
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 18, 2023
1 parent c2e693f commit 16ecf0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/app/pages/combat/combat.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class CombatPage implements OnInit {
}

public get isMyCharacterActive(): boolean {
if (!this.fight) return false;
return this.fight.currentTurn === this.myCharacterId;
}

Expand Down

0 comments on commit 16ecf0c

Please sign in to comment.