Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4a2a84b36f | ||
|
|
a4173f90b6 |
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user