Merge branch 'master' into develop
# Conflicts: # front/src/Connexion/RoomConnection.ts # front/src/Phaser/Menu/ReportMenu.ts
This commit is contained in:
@@ -104,8 +104,7 @@ 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 ){
|
||||
if(!gameTextArea || !gameTextArea.value){
|
||||
gamePError.innerText = 'Report message cannot to be empty.';
|
||||
gamePError.style.display = 'block';
|
||||
return;
|
||||
@@ -116,4 +115,4 @@ export class ReportMenu extends Phaser.GameObjects.DOMElement {
|
||||
);
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user