From bea99711e4736cade0c6e3a6d4cf110c77f6bb32 Mon Sep 17 00:00:00 2001 From: Alexis Faizeau Date: Fri, 28 Jan 2022 15:11:57 +0100 Subject: [PATCH] Fix i18n error message --- front/src/Phaser/Login/EntryScene.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/src/Phaser/Login/EntryScene.ts b/front/src/Phaser/Login/EntryScene.ts index 4d1b0502..f3ab3a08 100644 --- a/front/src/Phaser/Login/EntryScene.ts +++ b/front/src/Phaser/Login/EntryScene.ts @@ -8,8 +8,6 @@ import LL from "../../i18n/i18n-svelte"; import { get } from "svelte/store"; import { localeDetector } from "../../i18n/locales"; -const $LL = get(LL); - export const EntrySceneName = "EntryScene"; /** @@ -43,6 +41,7 @@ export class EntryScene extends Scene { this.scene.start(nextSceneName); }) .catch((err) => { + const $LL = get(LL); if (err.response && err.response.status == 404) { ErrorScene.showError( new WAError(