Skip to content

Commit

Permalink
fix summary of solo scenarios
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Elmer committed Dec 8, 2023
1 parent 6179992 commit d379439
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/ui/footer/scenario/summary/scenario-summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,9 @@ export class ScenarioSummaryComponent {
if (this.characters.filter((char) => !char.absent).length == 1) {
const char = this.characters.find((char) => !char.absent);
if (char) {
if (this.items[this.characters.indexOf(char)] === undefined) {
this.items[this.characters.indexOf(char)] = [];
}
this.items[this.characters.indexOf(char)].push(index);
}
}
Expand Down

0 comments on commit d379439

Please sign in to comment.