mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-05 20:16:04 +08:00
bug: pathname check is added (#948)
This commit is contained in:
parent
53e7037f48
commit
6c4c814b3f
@ -28,10 +28,10 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
|
||||
}, [isLoggedIn, isSignUpPage]);
|
||||
|
||||
useEffect(() => {
|
||||
if (isLoggedIn) {
|
||||
if (isLoggedIn && pathname === ROUTES.SIGN_UP) {
|
||||
history.push(ROUTES.APPLICATION);
|
||||
}
|
||||
}, [isLoggedIn]);
|
||||
}, [isLoggedIn, pathname]);
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
|
Loading…
x
Reference in New Issue
Block a user