From 329f721998cb2e212c3bf135e5f7a51972098d19 Mon Sep 17 00:00:00 2001 From: PizZaKatZe <78648379+pizkaz@users.noreply.github.com> Date: Mon, 20 Dec 2021 16:46:16 +0100 Subject: [PATCH] Update back/src/Model/Group.ts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: David NĂ©grier --- back/src/Model/Group.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } });