diff --git a/front/src/Phaser/Login/LoginScene.ts b/front/src/Phaser/Login/LoginScene.ts index 6bba0290..bcd56b9b 100644 --- a/front/src/Phaser/Login/LoginScene.ts +++ b/front/src/Phaser/Login/LoginScene.ts @@ -17,7 +17,7 @@ export class LoginScene extends ResizableScene { this.name = gameManager.getPlayerName() || ""; } - preload() {} + preload() { } create() { loginSceneVisibleIframeStore.set(false); @@ -28,9 +28,10 @@ export class LoginScene extends ResizableScene { gameManager.currentStartedRoom.authenticationMandatory ) { connectionManager.loadOpenIDScreen(); - loginSceneVisibleIframeStore.set(true); + loginSceneVisibleStore.set(false); + } else { + loginSceneVisibleStore.set(true); } - loginSceneVisibleStore.set(true); } public login(name: string): void { @@ -43,7 +44,7 @@ export class LoginScene extends ResizableScene { loginSceneVisibleStore.set(false); } - update(time: number, delta: number): void {} + update(time: number, delta: number): void { } - public onResize(): void {} + public onResize(): void { } }