From dc26e91f085e919097d68597c6d693739e6cc63a Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 30 Mar 2020 14:07:13 -0500 Subject: [PATCH] Hide funding panel if no funding is provided --- app/gabsocial/pages/home_page.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/gabsocial/pages/home_page.js b/app/gabsocial/pages/home_page.js index 8974a5248..cac62625a 100644 --- a/app/gabsocial/pages/home_page.js +++ b/app/gabsocial/pages/home_page.js @@ -21,6 +21,7 @@ export default @connect(mapStateToProps) class HomePage extends ImmutablePureComponent { render () { const {children, account} = this.props; + const hasFunding = funding && funding.goal && funding.goal.amount && funding.goal.text; return (
@@ -30,7 +31,7 @@ class HomePage extends ImmutablePureComponent {
- {funding.goal.amount && funding.goal.text && } + {hasFunding && }