Update back/src/Model/Group.ts
Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
This commit is contained in:
parent
50147db895
commit
329f721998
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ export class Group implements Movable {
|
|||
includes(user: User): boolean {
|
||||
let found = false;
|
||||
this.users.forEach((currentUser: User) => {
|
||||
if (currentUser.name === user.name) {
|
||||
if (currentUser.id === user.id) {
|
||||
found = true;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue