Skip to content

Commit

Permalink
Merge pull request #309 from celestiaorg/hotfix/ecosystem-box-layout-fix
Browse files Browse the repository at this point in the history
fix don't render blocks when no related data provided
  • Loading branch information
alex-beckett authored Dec 8, 2023
2 parents 9f10398 + aae3141 commit f0b97da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ecosystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export default class Ecosystem extends React.Component {
<div className={"logo-container"}>
<Image alt={this.props.ecosystem.title} filename={this.props.ecosystem.image} />
</div>
<div className={"category"}>{this.props.category.name}</div>
<div className={"title"}>{this.props.ecosystem.title}</div>
<div className={"text"}>{this.props.ecosystem.text}</div>
{this.props.category.name && <div className={"category"}>{this.props.category.name}</div>}
{this.props.ecosystem.title && <div className={"title"}>{this.props.ecosystem.title}</div>}
{this.props.ecosystem.text && <div className={"text"}>{this.props.ecosystem.text}</div>}
</div>
</a>
);
Expand Down

0 comments on commit f0b97da

Please sign in to comment.