mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +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;
|
return;
|
||||||
}
|
}
|
||||||
setHasPassword(!!data.hasPassword);
|
setHasPassword(!!data.hasPassword);
|
||||||
|
} else {
|
||||||
|
// Safe fallback on non-OK response to avoid infinite loading state.
|
||||||
|
setHasPassword(true);
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
|
|||||||
Reference in New Issue
Block a user