From: SleeplessOne1917 Date: Tue, 27 Jun 2023 23:01:47 +0000 (-0400) Subject: Fix subscribe and block community buttons not showing up on first load X-Git-Url: http://these/git/%7Bthis.props.icon%7D?a=commitdiff_plain;h=e7c121aff93a2965ab28e66fc0d2e3dbeab41a37;p=lemmy-ui.git Fix subscribe and block community buttons not showing up on first load --- diff --git a/src/shared/components/community/sidebar.tsx b/src/shared/components/community/sidebar.tsx index 733c19a..d5cf2cb 100644 --- a/src/shared/components/community/sidebar.tsx +++ b/src/shared/components/community/sidebar.tsx @@ -260,20 +260,18 @@ export class Sidebar extends Component { subscribe() { const community_view = this.props.community_view; return ( - <> - {community_view.subscribed == "NotSubscribed" && ( - - )} - + community_view.subscribed === "NotSubscribed" && ( + + ) ); } @@ -281,18 +279,16 @@ export class Sidebar extends Component { const { subscribed, blocked } = this.props.community_view; return ( - <> - {subscribed == "NotSubscribed" && ( - - )} - + subscribed === "NotSubscribed" && ( + + ) ); }