Update back/src/Model/Group.ts

Co-authored-by: David Négrier <d.negrier@thecodingmachine.com>
This commit is contained in:
PizZaKatZe 2021-12-20 16:46:16 +01:00 committed by GitHub
parent 50147db895
commit 329f721998
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
});