aboutsummaryrefslogtreecommitdiff
path: root/modern/src/MainPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/MainPage.js')
-rw-r--r--modern/src/MainPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/MainPage.js b/modern/src/MainPage.js
index 1ab151fa..b13a263e 100644
--- a/modern/src/MainPage.js
+++ b/modern/src/MainPage.js
@@ -38,10 +38,10 @@ const useStyles = makeStyles(theme => ({
}));
const MainPage = ({ width }) => {
- const authenticated = useSelector(state => state.session.authenticated);
+ const initialized = useSelector(state => !!state.session.server && !!state.session.user);
const classes = useStyles();
- return !authenticated ? (<LinearProgress />) : (
+ return !initialized ? (<LinearProgress />) : (
<div className={classes.root}>
<MainToobar />
<div className={classes.content}>