Fix "ups" error for 1sec after logout
This commit is contained in:
@@ -65,7 +65,9 @@ export function useAuthChangeListener({
|
||||
return;
|
||||
}
|
||||
|
||||
window.location.reload();
|
||||
// Redirect to home instead of reloading to avoid state mismatch errors
|
||||
// during the transition
|
||||
window.location.assign('/');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user