From 4e9e51004f0291e67613b980fd07a9e3ddf9f485 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Wed, 4 Mar 2026 21:46:58 +0100 Subject: [PATCH] fix: null checks in FDVideoHeroBlock --- src/blocks/FDVideoHeroBlock/Component.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blocks/FDVideoHeroBlock/Component.tsx b/src/blocks/FDVideoHeroBlock/Component.tsx index e4acb64..8221902 100644 --- a/src/blocks/FDVideoHeroBlock/Component.tsx +++ b/src/blocks/FDVideoHeroBlock/Component.tsx @@ -56,7 +56,7 @@ export const FDVideoHeroBlockComponent: React.FC = (props black: 'bg-black', navy: 'bg-fd-navy', } - const overlayClass = hasOverlay + const overlayClass = hasOverlay && overlayColor && overlayStrength ? `${overlayBgMap[overlayColor] || ''} ${overlayOpacityMap[overlayStrength] || 'opacity-50'}` : '' @@ -71,7 +71,7 @@ export const FDVideoHeroBlockComponent: React.FC = (props large: 'min-h-[80vh]', medium: 'min-h-[60vh]', } - const heightClass = heightMap[minHeight] || 'min-h-screen' + const heightClass = heightMap[minHeight || "screen"] || 'min-h-screen' // Text alignment const alignClass = textAlign === 'center' ? 'text-center items-center' : 'text-left items-start'