reload fixed
This commit was merged in pull request #871.
This commit is contained in:
@@ -90,7 +90,7 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
|
|||||||
apiCall
|
apiCall
|
||||||
.loadProfile()
|
.loadProfile()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (!res?.data?.internal_return || res?.data?.internal_return < 0) {
|
if (!res?.data) {
|
||||||
setIsLogin({ loading: false, status: false });
|
setIsLogin({ loading: false, status: false });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user