From 60ec09836b35febd7abddf73c0f36f04c6c06b7f Mon Sep 17 00:00:00 2001 From: CEC Date: Tue, 19 Apr 2022 17:55:16 +0200 Subject: [PATCH] Fix prettier issue (2) --- front/src/Components/UI/ErrorScreen.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/front/src/Components/UI/ErrorScreen.svelte b/front/src/Components/UI/ErrorScreen.svelte index 74c55b78..b51708c3 100644 --- a/front/src/Components/UI/ErrorScreen.svelte +++ b/front/src/Components/UI/ErrorScreen.svelte @@ -9,15 +9,15 @@ let logo = gameManager?.currentStartedRoom?.loginSceneLogo ?? logoImg; import reload from "../images/reload.png"; import external from "../images/external-link.png"; - import {connectionManager} from "../../Connexion/ConnectionManager"; + import { connectionManager } from "../../Connexion/ConnectionManager"; let errorScreen = get(errorScreenStore); - if(!errorScreen.buttonTitle && errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect); + if (!errorScreen.buttonTitle && errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect); function click() { if (errorScreen.urlToRedirect) { - if (errorScreen.urlToRedirect === '/login') void connectionManager.logout(); + if (errorScreen.urlToRedirect === "/login") void connectionManager.logout(); else window.location.replace(errorScreen.urlToRedirect); } else if (errorScreen.type === "redirect" && window.history.length > 2) history.back(); else window.location.reload();