fix(login): clear data on logout (@fehmer) (#6791)

fixes #6789
This commit is contained in:
Christian Fehmer 2025-07-27 19:36:19 +02:00 committed by GitHub
parent 28c1cccd57
commit 32ff95a2a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,6 +217,9 @@ async function readyFunction(
if (window.location.pathname === "/account") {
window.history.replaceState("", "", "/login");
}
Settings.hideAccountSection();
AccountButton.update(undefined);
DB.setSnapshot(undefined);
Sentry.clearUser();
PageTransition.set(false);
navigate();