]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/post/create-post.tsx
Feature/user community block (#362)
[lemmy-ui.git] / src / shared / components / post / create-post.tsx
index d2945b588f73253820ff9ff8375362fb3be6f70b..b5c95c4a85fb68f14609d0b0757fe8c2ab820a70 100644 (file)
@@ -51,7 +51,7 @@ export class CreatePost extends Component<any, CreatePostState> {
     this.handlePostCreate = this.handlePostCreate.bind(this);
     this.state = this.emptyState;
 
-    if (!UserService.Instance.localUserView && isBrowser()) {
+    if (!UserService.Instance.myUserInfo && isBrowser()) {
       toast(i18n.t("not_logged_in"), "danger");
       this.context.router.history.push(`/login`);
     }