From 2cf99df2da81122156fa9b6d7b608ebf7365d6a5 Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Thu, 11 Mar 2021 02:03:06 +0100 Subject: [PATCH] Hot Fix report --- front/src/Phaser/Menu/ReportMenu.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/front/src/Phaser/Menu/ReportMenu.ts b/front/src/Phaser/Menu/ReportMenu.ts index bee86c35..0795debe 100644 --- a/front/src/Phaser/Menu/ReportMenu.ts +++ b/front/src/Phaser/Menu/ReportMenu.ts @@ -104,14 +104,13 @@ export class ReportMenu extends Phaser.GameObjects.DOMElement { gamePError.innerText = ''; gamePError.style.display = 'none'; const gameTextArea = this.getChildByID('gameReportInput') as HTMLInputElement; - const gameIdUserReported = this.getChildByID('idUserReported') as HTMLInputElement; - if(!gameTextArea || !gameTextArea.value || !gameIdUserReported || !gameIdUserReported.value){ + if(!gameTextArea || !gameTextArea.value){ gamePError.innerText = 'Report message cannot to be empty.'; gamePError.style.display = 'block'; return; } gameManager.getCurrentGameScene(this.scene).connection.emitReportPlayerMessage( - parseInt(gameIdUserReported.value), + this.userId, gameTextArea.value ); this.close();