diff --git a/back/src/Model/Group.ts b/back/src/Model/Group.ts index 08d1d21e..2f8e315f 100644 --- a/back/src/Model/Group.ts +++ b/back/src/Model/Group.ts @@ -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; } });