Skip to content

Commit d89a61b

Browse files
committed
Merge pull request #1450 from WildMeOrg/flukebook_login_issue
remove timeout limit
1 parent 0c5eca1 commit d89a61b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/FrontDesk.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default function FrontDesk() {
2929
const showClassicEncounterSearch = data?.showClassicEncounters;
3030
const checkLoginStatus = () => {
3131
axios
32-
.head("/api/v3/user", { timeout: 5000 })
32+
.head("/api/v3/user")
3333
.then((response) => {
3434
if (response.status === 200) {
3535
setIsLoggedIn(true);
@@ -39,10 +39,10 @@ export default function FrontDesk() {
3939
.catch((error) => {
4040
if (error.response?.status === 401) {
4141
setIsLoggedIn(false);
42+
setLoading(false);
4243
} else {
4344
console.warn("Login status check failed (non-401):", error.message);
4445
}
45-
setLoading(false);
4646
});
4747
};
4848

0 commit comments

Comments
 (0)