diff --git a/src/shared/components/home/login.tsx b/src/shared/components/home/login.tsx index 30e5d909..c6338af4 100644 --- a/src/shared/components/home/login.tsx +++ b/src/shared/components/home/login.tsx @@ -105,6 +105,13 @@ export class Login extends Component { } } + componentDidMount() { + // Navigate to home if already logged in + if (UserService.Instance.myUserInfo) { + this.context.router.history.push("/"); + } + } + componentWillUnmount() { if (isBrowser()) { this.subscription.unsubscribe();