diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index d5cf2cb6..fcb0dad7 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -166,7 +166,7 @@ export class Sidebar extends Component { communityTitle() { const community = this.props.community_view.community; - const subscribed = this.props.community_view.subscribed; + return (
@@ -176,33 +176,6 @@ export class Sidebar extends Component { - {subscribed === "Subscribed" && ( - - )} - {subscribed === "Pending" && ( - - )} {community.removed && ( {I18NextService.i18n.t("removed")} @@ -259,8 +232,9 @@ export class Sidebar extends Component { subscribe() { const community_view = this.props.community_view; - return ( - community_view.subscribed === "NotSubscribed" && ( + + if (community_view.subscribed === "NotSubscribed") { + return ( - ) - ); + ); + } + + if (community_view.subscribed === "Subscribed") { + return ( + + ); + } + + if (community_view.subscribed === "Pending") { + return ( + + ); + } } blockCommunity() {