feat(SW-1012): add ternary expression for hotel images
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user