diff --git a/src/features/home/pages/GenericHome.tsx b/src/features/home/pages/GenericHome.tsx index 3e86811595e..ee65a3ad872 100644 --- a/src/features/home/pages/GenericHome.tsx +++ b/src/features/home/pages/GenericHome.tsx @@ -208,7 +208,7 @@ const OnlineHome: FunctionComponent = ({ 'home_type', thematicHeader ? `thematicHome - ${thematicHeader.type}` : 'mainHome' ) - attributes.put('home_name', thematicHeader ? thematicHeader.title : 'mainHome') + thematicHeader && attributes.put('home_name', thematicHeader.title ?? 'mainHome') BatchProfile.trackEvent(BatchEvent.hasSeenEnoughHomeContent, attributes) }