diff --git a/src/containers/ListingPage/ListingPage.js b/src/containers/ListingPage/ListingPage.js index f7b2f43c..eb798d9f 100644 --- a/src/containers/ListingPage/ListingPage.js +++ b/src/containers/ListingPage/ListingPage.js @@ -232,8 +232,10 @@ export class ListingPageComponent extends Component { } = currentListing.attributes; const { customAttributes } = currentListing.attributes; + const hasCategoryConfig = config.customAttributes && config.customAttributes.category; + const hasCategoryAttribute = customAttributes && customAttributes.category; const category = - config.customAttributes.category && customAttributes && customAttributes.category ? ( + hasCategoryConfig && hasCategoryAttribute ? (