Fix test for catch error in EntryScene

This commit is contained in:
CEC 2022-04-14 15:36:05 +02:00
parent 5ee13d2001
commit ec2b23f32f

View File

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