From bd8660b6392224906d13d59e3641459db7bcccc4 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 12 May 2026 11:34:57 +0200 Subject: [PATCH] chore: fix lint error (no-empty) in HeroVideo.tsx --- components/blocks/HeroVideo.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/blocks/HeroVideo.tsx b/components/blocks/HeroVideo.tsx index e3d33fd35..62cbb814e 100644 --- a/components/blocks/HeroVideo.tsx +++ b/components/blocks/HeroVideo.tsx @@ -41,7 +41,9 @@ export function HeroVideo(props: HeroVideoProps) { if (typeof window !== 'undefined') { currentLocale = window.location.pathname.startsWith('/en') ? 'en' : 'de'; } - } catch (e) {} + } catch (e) { + // Fallback to default locale if window/location access fails + } const secondaryCtaLabel = props.secondaryCtaLabel || data?.secondaryCtaLabel || (currentLocale === 'de' ? 'Projekt anfragen' : 'Inquire Project'); const secondaryCtaHref = props.secondaryCtaHref || data?.secondaryCtaHref || `/${currentLocale}/${currentLocale === 'de' ? 'contact' : 'contact'}`;