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"
|
||||
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")}
|
||||
|
||||
Reference in new issue
Block a user