Fixing site setup. Fixes #1694

This commit is contained in:
Dessalines 2023-06-29 08:49:45 -04:00
parent 67365d5878
commit 29feb58d2f

View file

@ -205,12 +205,10 @@ export class Setup extends Component<any, State> {
const data = i.state.registerRes.data; const data = i.state.registerRes.data;
UserService.Instance.login(data); UserService.Instance.login(data);
if (UserService.Instance.jwtInfo) {
i.setState({ doneRegisteringUser: true }); i.setState({ doneRegisteringUser: true });
} }
} }
} }
}
async handleCreateSite(form: CreateSite) { async handleCreateSite(form: CreateSite) {
const createRes = await HttpService.client.createSite(form); const createRes = await HttpService.client.createSite(form);