feat(SW-1012): add ternary expression for hotel images

This commit is contained in:
Fredrik Thorsson
2024-12-16 09:19:58 +01:00
parent 8c914815cb
commit 0c1a4896d0
2 changed files with 4 additions and 3 deletions

View File

@@ -124,7 +124,9 @@ export default async function HotelPage({ hotelId }: HotelPageProps) {
<Suspense fallback={<BreadcrumbsSkeleton />}>
<Breadcrumbs />
</Suspense>
{images?.length && <PreviewImages images={images} hotelName={name} />}
{images?.length ? (
<PreviewImages images={images} hotelName={name} />
) : null}
</header>
<TabNavigation
restaurantTitle={getRestaurantHeading(detailedFacilities)}