fix(login): avoid infinite loading on settings fetch failure
This commit is contained in:
1 parent
49df3dce90
commit
01c9410530
1 file changed
+3
@@ -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