From ef92d578cd6e845a7725ac98c7d22dbc6834354b Mon Sep 17 00:00:00 2001 From: Michael Novotny Date: Thu, 3 Aug 2023 21:17:02 -0500 Subject: [PATCH] Adds more home page carousel products for wide screens (#1142) --- components/carousel.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/carousel.tsx b/components/carousel.tsx index a4c58bd5d..286d4dfea 100644 --- a/components/carousel.tsx +++ b/components/carousel.tsx @@ -8,10 +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 (