Hide funding panel if no funding is provided
This commit is contained in:
parent
0a03424e75
commit
dc26e91f08
1 changed files with 2 additions and 1 deletions
|
@ -21,6 +21,7 @@ export default @connect(mapStateToProps)
|
||||||
class HomePage extends ImmutablePureComponent {
|
class HomePage extends ImmutablePureComponent {
|
||||||
render () {
|
render () {
|
||||||
const {children, account} = this.props;
|
const {children, account} = this.props;
|
||||||
|
const hasFunding = funding && funding.goal && funding.goal.amount && funding.goal.text;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='page'>
|
<div className='page'>
|
||||||
|
@ -30,7 +31,7 @@ class HomePage extends ImmutablePureComponent {
|
||||||
<div className='columns-area__panels__pane columns-area__panels__pane--left'>
|
<div className='columns-area__panels__pane columns-area__panels__pane--left'>
|
||||||
<div className='columns-area__panels__pane__inner'>
|
<div className='columns-area__panels__pane__inner'>
|
||||||
<UserPanel />
|
<UserPanel />
|
||||||
{funding.goal.amount && funding.goal.text && <FundingPanel goal={funding.goal.amount} goal_text={funding.goal.text} />}
|
{hasFunding && <FundingPanel goal={funding.goal.amount} goal_text={funding.goal.text} />}
|
||||||
<PromoPanel />
|
<PromoPanel />
|
||||||
<LinkFooter />
|
<LinkFooter />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue