Fixes stand alone headers for useCases without any details to edit in that branch
@@ -271,7 +271,8 @@ class CreateAtom extends React.Component {
}
if (this.props.showCreateInput) {
- const createContentFragment = this.props.useCase.details && (
+ const createContentFragment = this.props.useCase.details &&
+ Object.keys(this.props.useCase.details).length > 0 && (
<React.Fragment>
<div className="cp__content__branchheader">
Your offer or self description
@@ -284,7 +285,8 @@ class CreateAtom extends React.Component {
</React.Fragment>
);
- const createSeeksFragment = this.props.useCase.seeksDetails && (
+ const createSeeksFragment = this.props.useCase.seeksDetails &&
+ Object.keys(this.props.useCase.seeksDetails).length > 0 && (
<React.Fragment>
<div className="cp__content__branchheader">Looking For</div>
<WonCreateIsSeeks
