diff --git a/src/Components/LoginChecker/LoginChecker.tsx b/src/Components/LoginChecker/LoginChecker.tsx
index c99bee3..07d8bed 100644
--- a/src/Components/LoginChecker/LoginChecker.tsx
+++ b/src/Components/LoginChecker/LoginChecker.tsx
@@ -11,7 +11,8 @@ export default function LoginChecker() {
const old_session_checked = useSelector(
(state: OldSessionState) => state.old_session_checked.value
);
- if (!logged_in && old_session_checked) {
+ if (!logged_in && !old_session_checked) {
+ } else if (!logged_in && old_session_checked) {
console.log("Not logged in. Redirecting to login page");
return
Dashboard
++ Loading dashboard... +
+Dashboard
++ Error loading dashboard +
+