From 1549eb5aa14aa021c6546d9f77362e91bc8be317 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 19 Feb 2022 21:28:47 +0100 Subject: [PATCH] fixed stuck on loading page when not logged in --- frontend/src/scripts/controllers/account-controller.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frontend/src/scripts/controllers/account-controller.js b/frontend/src/scripts/controllers/account-controller.js index 9faab7586..2519a4f7b 100644 --- a/frontend/src/scripts/controllers/account-controller.js +++ b/frontend/src/scripts/controllers/account-controller.js @@ -278,6 +278,11 @@ const authListener = firebase.auth().onAuthStateChanged(async function (user) { Account.update(); // SignOutButton.show(); } + } else { + PageController.change(); + setTimeout(() => { + Focus.set(false); + }, 125 / 2); } let theme = Misc.findGetParameter("customTheme");