Fix order

This commit is contained in:
Bruno Rybársky 2024-02-06 20:48:30 +01:00
parent 7a7321f69d
commit 80c278ca99

@ -213,9 +213,9 @@ async function logout() {
doAction('/account', data, "Logout Successful!", "Logout failed.") doAction('/account', data, "Logout Successful!", "Logout failed.")
.then(async () => { .then(async () => {
localStorage.clear();
await refreshNavbar(); await refreshNavbar();
await navigateTo(localStorage.getItem("defaultSite"), localStorage.getItem("defaultPage")); await navigateTo(localStorage.getItem("defaultSite"), localStorage.getItem("defaultPage"));
localStorage.clear();
umami.track("logout"); umami.track("logout");
}) })
.catch((error) => { .catch((error) => {