16029: Fixes failed login attempt by redirecting the user to the login page.
[arvados-workbench2.git] / src / views / main-panel / main-panel-root.tsx
index e7daaf00932f0a0c8080946b22f340e2114870f9..5806f5b8276593a7a101f66f7ef3c39bdf6f2f6e 100644 (file)
@@ -46,10 +46,16 @@ export const MainPanelRoot = withStyles(styles)(
                     buildInfo={buildInfo}
                     uuidPrefix={uuidPrefix}
                     siteBanner={siteBanner}>
-                    {working ? <LinearProgress color="secondary" /> : null}
+                    {working
+                        ? <LinearProgress color="secondary" />
+                        : null}
                 </MainAppBar>}
                 <Grid container direction="column" className={classes.root}>
-                    {user ? (user.isActive || (!user.isActive && isLinkingPath) ? <WorkbenchPanel isNotLinking={isNotLinking} isUserActive={user.isActive} /> : <InactivePanel />) : <LoginPanel />}
+                    {user
+                        ? (user.isActive || (!user.isActive && isLinkingPath)
+                            ? <WorkbenchPanel isNotLinking={isNotLinking} isUserActive={user.isActive} />
+                            : <InactivePanel />)
+                        : <LoginPanel />}
                 </Grid>
             </>
 );