Skip to content

Commit

Permalink
fix: owner undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbeBryssinck committed Jun 25, 2022
1 parent a942002 commit 65a2df8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/skyrim_ui/src/app/models/group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ export class Group {
members?: Array<number>
} = {}) {
this.isEnabled = options.isEnabled || false;
// TODO: this may be problematic, since the owner id can be 0
this.owner = options.owner || undefined;
this.owner = options.owner;
this.members = options.members || new Array<number>();
}
}

0 comments on commit 65a2df8

Please sign in to comment.