]> Untitled Git - lemmy-ui.git/blobdiff - src/shared/components/person/registration-applications.tsx
Redirect to login and remove duplicated code
[lemmy-ui.git] / src / shared / components / person / registration-applications.tsx
index cd99bcc454aadb7b0d9ad2c4efbda242ef9ee317..b25c406a4e5d893aec287326b551f4e380ac1aa6 100644 (file)
@@ -59,11 +59,6 @@ export class RegistrationApplications extends Component<
 
     this.handlePageChange = this.handlePageChange.bind(this);
 
-    if (!UserService.Instance.myUserInfo && isBrowser()) {
-      toast(i18n.t("not_logged_in"), "danger");
-      this.context.router.history.push(`/login`);
-    }
-
     this.parseMessage = this.parseMessage.bind(this);
     this.subscription = wsSubscribe(this.parseMessage);