Skip to content

Commit 32ff95a

Browse files
authored
fix(login): clear data on logout (@fehmer) (monkeytypegame#6791)
fixes monkeytypegame#6789
1 parent 28c1ccc commit 32ff95a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/ts/controllers/account-controller.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,9 @@ async function readyFunction(
217217
if (window.location.pathname === "/account") {
218218
window.history.replaceState("", "", "/login");
219219
}
220+
Settings.hideAccountSection();
221+
AccountButton.update(undefined);
222+
DB.setSnapshot(undefined);
220223
Sentry.clearUser();
221224
PageTransition.set(false);
222225
navigate();

0 commit comments

Comments
 (0)