fix: handle mobile logout failures

This commit is contained in:
ajnart committed 2026-07-28 19:39:12 +02:00
1 parent 7c0e98c55b
commit 9f0969ec22
1 file changed
+5 -3
@@ -339,9 +339,11 @@ const MobileMoreMenu = ({ showSettings }: { showSettings: boolean }) => {
justify="flex-start"
leftSection={<IconLogout size={20} />}
onClick={() => {
void signOut({ redirect: false }).then(() => {
window.location.assign(logoutUrl ?? "/auth/login");
});
void signOut({ redirect: false })
.catch(() => undefined)
.then(() => {
window.location.assign(logoutUrl ?? "/auth/login");
});
}}
>
{tProfile("logout")}