fix: handle mobile logout failures
This commit is contained in:
1 parent
7c0e98c55b
commit
9f0969ec22
1 file changed
+5
-3
@@ -339,9 +339,11 @@ const MobileMoreMenu = ({ showSettings }: { showSettings: boolean }) => {
|
|||||||
justify="flex-start"
|
justify="flex-start"
|
||||||
leftSection={<IconLogout size={20} />}
|
leftSection={<IconLogout size={20} />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
void signOut({ redirect: false }).then(() => {
|
void signOut({ redirect: false })
|
||||||
window.location.assign(logoutUrl ?? "/auth/login");
|
.catch(() => undefined)
|
||||||
});
|
.then(() => {
|
||||||
|
window.location.assign(logoutUrl ?? "/auth/login");
|
||||||
|
});
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{tProfile("logout")}
|
{tProfile("logout")}
|
||||||
|
|||||||
Reference in new issue
Block a user