0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-03 21:48:55 -05:00

Merge pull request #840 from logto-io/charles-fix-infinite-loading-when-not-authenticated

fix(console): fix infinite loading issue when not authenticated
This commit is contained in:
Charles Zhao 2022-05-16 14:30:21 +08:00 committed by GitHub
commit a85b9b6520
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ const Main = () => {
}
}, [location.pathname, navigate, sections]);
if (!sections?.length) {
if (isAuthenticated && !sections?.length) {
return <LogtoLoading message="general.loading" />;
}