diff options
Diffstat (limited to 'FrontEnd/src/app/App.tsx')
-rw-r--r-- | FrontEnd/src/app/App.tsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/FrontEnd/src/app/App.tsx b/FrontEnd/src/app/App.tsx index 0a7513e4..fb57bd1e 100644 --- a/FrontEnd/src/app/App.tsx +++ b/FrontEnd/src/app/App.tsx @@ -12,7 +12,6 @@ import TimelinePage from "./views/timeline"; import Search from "./views/search"; import AlertHost from "./views/common/alert/AlertHost"; -import { dataStorage } from "./services/common"; import { userService, useRawUser } from "./services/user"; const NoMatch: React.FC = () => { @@ -24,16 +23,13 @@ const LazyAdmin = React.lazy( ); const App: React.FC = () => { - const [loading, setLoading] = React.useState<boolean>(true); - const user = useRawUser(); React.useEffect(() => { void userService.checkLoginState(); - void dataStorage.ready().then(() => setLoading(false)); }, []); - if (user === undefined || loading) { + if (user === undefined) { return <LoadingPage />; } else { return ( |