diff --git a/front/src/Connexion/Room.ts b/front/src/Connexion/Room.ts index 389405a0..33d8486f 100644 --- a/front/src/Connexion/Room.ts +++ b/front/src/Connexion/Room.ts @@ -104,9 +104,9 @@ export class Room { const data = result.data; - if (isRoomRedirect(data.redirectUrl)) { + if (isRoomRedirect(data)) { return { - redirectUrl: data.redirectUrl as string, + redirectUrl: data.redirectUrl, }; } else if (isMapDetailsData(data)) { console.log("Map ", this.id, " resolves to URL ", data.mapUrl);