From d98b1d7cce56cb48f631ee2b27600faf3caa82eb Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Thu, 3 Aug 2023 18:35:01 -0500 Subject: [PATCH] Variable --- components/carousel.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/carousel.tsx b/components/carousel.tsx index 811ca5f672..286d4dfea4 100644 --- a/components/carousel.tsx +++ b/components/carousel.tsx @@ -8,12 +8,13 @@ export async function Carousel() { if (!products?.length) return null; + // Purposefully duplicating products to make the carousel loop and not run out of products on wide screens. + const carouselProducts = [...products, ...products, ...products]; + return (