From: Dessalines Date: Fri, 18 Nov 2022 00:20:25 +0000 (-0500) Subject: Make sure user is logged in for site creation. Fixes #838 (#858) X-Git-Url: http://these/git/ui/assets/static/%7Biframely.thumbnail_url%7D?a=commitdiff_plain;h=b8755f83d6c232606f4ad07b86fca386b74649a5;p=lemmy-ui.git Make sure user is logged in for site creation. Fixes #838 (#858) --- diff --git a/src/shared/components/home/setup.tsx b/src/shared/components/home/setup.tsx index 8da196c..943e74a 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 = "/"; }