FIX: solved a menu crash
This commit is contained in:
parent
2f282e3469
commit
a094e16c1f
2 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue