Remove extra video row and make conditional

This commit is contained in:
Sam Carlton 2022-04-27 14:31:46 -05:00
parent b3a4bffdf8
commit 0ebb746ad9

View file

@ -9,15 +9,15 @@ const {
const hasRelatedVideos = listing.relatedVideos.length > 0
---
<div
class="related-videos w-full"
>
<Heading text="Related Videos" />
<VideoRow
videos={listing.relatedVideos}
/>
<VideoRow
videos={listing.relatedVideos}
/>
</div>
{ hasRelatedVideos && (
<div
class="related-videos w-full"
>
<Heading text="Related Videos" />
<VideoRow
videos={listing.relatedVideos}
/>
</div>
)}