From ca5a036e808793c299602317689fe5278fa6dfbc Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Wed, 23 Jul 2025 17:03:45 +0100 Subject: [PATCH] reload fixed --- src/middleware/AuthRoute.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware/AuthRoute.jsx b/src/middleware/AuthRoute.jsx index 50ffc8e..a818622 100644 --- a/src/middleware/AuthRoute.jsx +++ b/src/middleware/AuthRoute.jsx @@ -90,7 +90,7 @@ const AuthRoute = ({ redirectPath = "/login", children }) => { apiCall .loadProfile() .then((res) => { - if (!res?.data?.internal_return || res?.data?.internal_return < 0) { + if (!res?.data) { setIsLogin({ loading: false, status: false }); return; } -- 2.34.1