From ec2b23f32faa4e006885514dc2e4e321e334b2ab Mon Sep 17 00:00:00 2001 From: CEC Date: Thu, 14 Apr 2022 15:36:05 +0200 Subject: [PATCH] Fix test for catch error in EntryScene --- front/src/Phaser/Login/EntryScene.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/Phaser/Login/EntryScene.ts b/front/src/Phaser/Login/EntryScene.ts index 077cecec..c7f01d13 100644 --- a/front/src/Phaser/Login/EntryScene.ts +++ b/front/src/Phaser/Login/EntryScene.ts @@ -45,7 +45,7 @@ export class EntryScene extends Scene { this.scene.start(nextSceneName); }) .catch((err) => { - if (err.response.data?.code) { + if (err?.response?.data?.code) { errorScreenStore.setError(err.response.data); } else { ErrorScene.showError(err, this.scene);