]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/setup.tsx
Get it working for non-setup site.
[lemmy-ui.git] / src / shared / components / setup.tsx
index 6360ec5a36022e4fcb7d21aabc748c1b479dbc50..33fa44323232f9d2919bdae64705457b0eca4a19 100644 (file)
@@ -205,7 +205,7 @@ export class Setup extends Component<any, State> {
       UserService.Instance.login(data);
       this.setState(this.state);
     } else if (res.op == UserOperation.CreateSite) {
-      this.props.history.push('/');
+      window.location.href = '/';
     }
   }
 }