From d538d6976d13a5288bf7690b0ed5d1c53c60fb81 Mon Sep 17 00:00:00 2001 From: samvanhoey Date: Mon, 13 May 2024 14:50:58 +0200 Subject: [PATCH] fix: UIT-259 address optional --- src/shopDetail/_components/organizer/Organizer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shopDetail/_components/organizer/Organizer.tsx b/src/shopDetail/_components/organizer/Organizer.tsx index ebb3c8b9..cc3f46f6 100644 --- a/src/shopDetail/_components/organizer/Organizer.tsx +++ b/src/shopDetail/_components/organizer/Organizer.tsx @@ -19,7 +19,7 @@ export const Organizer = ({ id, fallbackName, showTopBorder = false }: TProps) = const formattedAddress = useMemo(() => { // Fallback to nl, in case there is no translated address - const address = data?.address[getLanguage()] || data?.address.nl; + const address = data?.address?.[getLanguage()] || data?.address?.nl; if (!address) return ''; let addressString = address.streetAddress;