From 83c364f3c7cc6136204c0d5acfb897a896149c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Chassagne?= Date: Wed, 13 Dec 2023 14:41:45 +0100 Subject: [PATCH] Fix sideImage --- src/components/Contentful/ContentfulLayoutHero.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/Contentful/ContentfulLayoutHero.js b/src/components/Contentful/ContentfulLayoutHero.js index 7023676682f..052077bee78 100644 --- a/src/components/Contentful/ContentfulLayoutHero.js +++ b/src/components/Contentful/ContentfulLayoutHero.js @@ -66,9 +66,15 @@ const ContentfulLayoutHero = props => { backgroundImageDarkMode={backgroundImageDarkMode} modules={modules} sideImage={sideImage} - sideImagePortfolio={sideImagePortfolio} + sideImagePortfolio={ + !isEmpty(sideImagePortfolio) ? sideImagePortfolio : sideImage + } sideImageDarkMode={sideImageDarkMode} - sideImagePortfolioDarkMode={sideImagePortfolioDarkMode} + sideImagePortfolioDarkMode={ + !isEmpty(sideImagePortfolioDarkMode) + ? sideImagePortfolioDarkMode + : sideImageDarkMode + } hideHeadline={hideHeadline} showLearnMore={showLearnMore} showFavIcon={showFavIcon}