Skip to content

Commit

Permalink
Merge pull request #422 from cultuurnet/fix/UIT-259-address-optional
Browse files Browse the repository at this point in the history
fix: UIT-259 address optional
  • Loading branch information
samvanhoeyicapps authored May 13, 2024
2 parents 8337074 + d538d69 commit c9f5d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shopDetail/_components/organizer/Organizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9f5d43

Please sign in to comment.