From e7c121aff93a2965ab28e66fc0d2e3dbeab41a37 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Tue, 27 Jun 2023 19:01:47 -0400 Subject: [PATCH] Fix subscribe and block community buttons not showing up on first load --- src/shared/components/community/sidebar.tsx | 48 ++++++++++----------- 1 file changed, 22 insertions(+), 26 deletions(-) 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" && ( + + ) ); } -- 2.44.1