diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index 28c8423a..4b0d602a 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -498,12 +498,6 @@ export class GameScene extends DirtyScene { this.openChatIcon = new OpenChatIcon(this, 2, this.game.renderer.height - 2) - // FIXME: change this to use the UserInputManager class for input - // FIXME: Comment this feature because when user write M key in report input, the layout change. - /*this.input.keyboard.on('keyup-M', () => { - this.switchLayoutMode(); - });*/ - this.reposition(); // From now, this game scene will be notified of reposition events diff --git a/front/src/Phaser/Menu/MenuScene.ts b/front/src/Phaser/Menu/MenuScene.ts index 4fc58f5d..e5ca5023 100644 --- a/front/src/Phaser/Menu/MenuScene.ts +++ b/front/src/Phaser/Menu/MenuScene.ts @@ -112,8 +112,8 @@ export class MenuScene extends Phaser.Scene { this.gameReportElement = new ReportMenu(this, connectionManager.getConnexionType === GameConnexionTypes.anonymous); showReportScreenStore.subscribe((user) => { - this.closeAll(); if (user !== null) { + this.closeAll(); this.gameReportElement.open(user.userId, user.userName); } });