Check that categories are enabled

This commit is contained in:
Kimmo Puputti 2017-12-20 15:41:00 +02:00
parent 9131afd34f
commit 3eb7b7c06d

View file

@ -233,7 +233,7 @@ export class ListingPageComponent extends Component {
const { customAttributes } = currentListing.attributes;
const category =
customAttributes && customAttributes.category ? (
config.customAttributes.category && customAttributes && customAttributes.category ? (
<span>
{customAttributes.category}
<span className={css.separator}></span>