Page Reload Fixed #871
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user