We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78b0ce4 commit f7fb31aCopy full SHA for f7fb31a
frontend/src/FrontDesk.jsx
@@ -29,7 +29,7 @@ export default function FrontDesk() {
29
const showClassicEncounterSearch = data?.showClassicEncounters;
30
const checkLoginStatus = () => {
31
axios
32
- .head("/api/v3/user", { timeout: 5000 })
+ .head("/api/v3/user")
33
.then((response) => {
34
if (response.status === 200) {
35
setIsLoggedIn(true);
@@ -39,10 +39,10 @@ export default function FrontDesk() {
39
.catch((error) => {
40
if (error.response?.status === 401) {
41
setIsLoggedIn(false);
42
+ setLoading(false);
43
} else {
44
console.warn("Login status check failed (non-401):", error.message);
45
}
- setLoading(false);
46
});
47
};
48
0 commit comments