FIX: solved a menu crash

This commit is contained in:
kharhamel 2021-06-24 12:14:28 +02:00
parent 2f282e3469
commit a094e16c1f
2 changed files with 1 additions and 7 deletions

View file

@ -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);
}
});