mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 14:59:04 +08:00
bug: logged in check is added in the useEffect (#921)
This commit is contained in:
parent
1b28a4e6f5
commit
d085506d3e
@ -27,6 +27,12 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
|
||||
}
|
||||
}, [isLoggedIn, isSignUpPage]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isLoggedIn) {
|
||||
history.push(ROUTES.APPLICATION);
|
||||
}
|
||||
}, [isLoggedIn]);
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
{!isSignUpPage && <SideNav />}
|
||||
|
Loading…
x
Reference in New Issue
Block a user