diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index d5cf2cb6..163a9dc0 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -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() {