mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 20:40:21 +02:00
fix unauthenticated flow
This commit is contained in:
@@ -58,6 +58,11 @@ export const useServerAuthenticated = () => {
|
||||
}, 300);
|
||||
|
||||
useEffect(() => {
|
||||
if (!server) {
|
||||
setReady(AuthState.INVALID);
|
||||
return;
|
||||
}
|
||||
|
||||
if (priorServerId.current !== server?.id) {
|
||||
const serverWithAuth = getServerById(server!.id);
|
||||
priorServerId.current = server?.id || '';
|
||||
|
||||
Reference in New Issue
Block a user