Merged in fix/SW-1987-length-check-experience-list (pull request #1585)

fix/SW-1987-length-check-experience-list

* fix(SW-1987): add ternary operator


Approved-by: Erik Tiekstra
Approved-by: Matilda Landström
This commit is contained in:
Fredrik Thorsson
2025-03-21 09:21:42 +00:00
parent c58815ec06
commit 0a1b36f8b7

View File

@@ -40,9 +40,9 @@ export default function CityListingItem({ city }: CityListingItemProps) {
<Subtitle asChild>
<h3>{city.heading}</h3>
</Subtitle>
{city.experiences?.length && (
{city.experiences?.length ? (
<ExperienceList experiences={city.experiences} />
)}
) : null}
<Body>{city.preamble}</Body>
<Divider variant="horizontal" color="primaryLightSubtle" />