diff --git a/front/src/Connexion/RoomConnection.ts b/front/src/Connexion/RoomConnection.ts index 3f0bb84e..e53bc2f8 100644 --- a/front/src/Connexion/RoomConnection.ts +++ b/front/src/Connexion/RoomConnection.ts @@ -482,6 +482,6 @@ export class RoomConnection implements RoomConnection { } public hasTag(tag: string): boolean { - return this.tags.indexOf(tag) !== -1; + return this.tags.includes(tag); } }