From 4076decaccf8f6c64b74738d87839421e67d541b Mon Sep 17 00:00:00 2001 From: CEC Date: Wed, 20 Apr 2022 11:30:14 +0200 Subject: [PATCH] fix prettier issue --- front/src/Phaser/Login/EntryScene.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/src/Phaser/Login/EntryScene.ts b/front/src/Phaser/Login/EntryScene.ts index 7c08f537..20a7b7d5 100644 --- a/front/src/Phaser/Login/EntryScene.ts +++ b/front/src/Phaser/Login/EntryScene.ts @@ -5,8 +5,8 @@ import { waScaleManager } from "../Services/WaScaleManager"; import { ReconnectingTextures } from "../Reconnecting/ReconnectingScene"; import { localeDetector } from "../../i18n/locales"; import { errorScreenStore } from "../../Stores/ErrorScreenStore"; -import {isErrorApiData} from "../../Messages/JsonMessages/ErrorApiData"; -import {connectionManager} from "../../Connexion/ConnectionManager"; +import { isErrorApiData } from "../../Messages/JsonMessages/ErrorApiData"; +import { connectionManager } from "../../Connexion/ConnectionManager"; export const EntrySceneName = "EntryScene"; @@ -50,7 +50,7 @@ export class EntryScene extends Scene { const errorType = isErrorApiData.safeParse(err?.response?.data); if (errorType.success) { // If error from API and urlToRedirect is specified but not buttonTitle => redirect directly - if (!errorType.data.buttonTitle && errorType.data.urlToRedirect){ + if (!errorType.data.buttonTitle && errorType.data.urlToRedirect) { if (errorType.data.urlToRedirect === "/login") void connectionManager.logout(); else window.location.assign(errorType.data.urlToRedirect); } else errorScreenStore.setError(err.response.data);