fix: logout error
This commit is contained in:
@@ -29,7 +29,7 @@ export const logout = async (userInfo?: any) => {
|
|||||||
});
|
});
|
||||||
clearStorageUserSettings();
|
clearStorageUserSettings();
|
||||||
clearAtomStorage(userAtom);
|
clearAtomStorage(userAtom);
|
||||||
if (res.logout_url) {
|
if (res?.logout_url) {
|
||||||
window.location.href = res.logout_url;
|
window.location.href = res.logout_url;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user