mirror of
https://github.com/decolua/9router.git
synced 2026-05-08 12:01:28 +00:00
fix(login): avoid infinite loading on settings fetch failure
This commit is contained in:
@@ -31,6 +31,9 @@ export default function LoginPage() {
|
||||
return;
|
||||
}
|
||||
setHasPassword(!!data.hasPassword);
|
||||
} else {
|
||||
// Safe fallback on non-OK response to avoid infinite loading state.
|
||||
setHasPassword(true);
|
||||
}
|
||||
} catch (err) {
|
||||
clearTimeout(timeoutId);
|
||||
|
||||
Reference in New Issue
Block a user