From b655ee0c14f8663c1acb62b78d2409c6edf8be2c Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 17 Nov 2022 19:16:02 -0500 Subject: [PATCH] Make sure user is logged in for site creation. Fixes #838 --- src/shared/components/home/setup.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/components/home/setup.tsx b/src/shared/components/home/setup.tsx index 8da196ca..943e74a1 100644 --- a/src/shared/components/home/setup.tsx +++ b/src/shared/components/home/setup.tsx @@ -209,6 +209,9 @@ export class Setup extends Component { let data = wsJsonToRes(msg, LoginResponse); this.setState({ userLoading: false }); UserService.Instance.login(data); + if (UserService.Instance.jwtInfo.isSome()) { + this.setState({ doneRegisteringUser: true }); + } } else if (op == UserOperation.CreateSite) { window.location.href = "/"; }