Compare commits

...
Author SHA1 Message Date
sagifer 4a2a84b36f Merge pull request 'Logging out (and deleting the account) leads to the home page' (#22) from main into prod
CI / test (push) Successful in 1m19s
CI / build (push) Successful in 1m36s
CI / deploy (push) Successful in 37s
Reviewed-on: #22
2026-11-19 13:05:05 +01:00
fecoandClaude Opus 5.5 a4173f90b6 Logging out (and deleting the account) leads to the home page
CI / test (push) Successful in 1m29s
CI / build (push) Successful in 4m51s
CI / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
2026-11-19 11:58:09 +00:00
2 changed files with 3 additions and 3 deletions
@@ -16,7 +16,7 @@ export function AccountData() {
setError(null);
try {
await api("/me", { method: "DELETE", body: { confirm: "DELETE" } });
window.location.href = "/belepes";
window.location.href = "/";
} catch (e) {
setError(errorText(e));
setBusy(false);
@@ -13,10 +13,10 @@ export function LogoutButton() {
try {
await api("/auth/logout", { method: "POST" });
} catch {
// The session may already be gone; go to the login page either way.
// The session may already be gone; go to the home page either way.
}
window.google?.accounts.id.disableAutoSelect();
router.replace("/belepes");
router.replace("/");
router.refresh();
}
return (