fix(login): avoid infinite loading on settings fetch failure

This commit is contained in:
Diego Souza
2026-02-06 23:41:29 +00:00
parent 49df3dce90
commit 01c9410530

View File

@@ -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);