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:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user