From 0a1b36f8b716bc57d6edd99c4ccb957a9e043462 Mon Sep 17 00:00:00 2001 From: Fredrik Thorsson Date: Fri, 21 Mar 2025 09:21:42 +0000 Subject: [PATCH] Merged in fix/SW-1987-length-check-experience-list (pull request #1585) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix/SW-1987-length-check-experience-list * fix(SW-1987): add ternary operator Approved-by: Erik Tiekstra Approved-by: Matilda Landström --- .../DestinationPage/CityListing/CityListingItem/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx index 1e6ef95ae..221296448 100644 --- a/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx +++ b/apps/scandic-web/components/ContentType/DestinationPage/CityListing/CityListingItem/index.tsx @@ -40,9 +40,9 @@ export default function CityListingItem({ city }: CityListingItemProps) {

{city.heading}

- {city.experiences?.length && ( + {city.experiences?.length ? ( - )} + ) : null} {city.preamble}