From af1f95d6c5561df2bc77a115b0723f7038c13224 Mon Sep 17 00:00:00 2001 From: James Kachel Date: Tue, 18 Jun 2024 07:53:42 -0500 Subject: [PATCH] Update the conditional for the marketing image test to drop out if we haven't seen a marketing image at all yet --- frontends/mit-open/src/pages/HomePage/TestimonialsSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/mit-open/src/pages/HomePage/TestimonialsSection.tsx b/frontends/mit-open/src/pages/HomePage/TestimonialsSection.tsx index 6240a9c45e..728e99396d 100644 --- a/frontends/mit-open/src/pages/HomePage/TestimonialsSection.tsx +++ b/frontends/mit-open/src/pages/HomePage/TestimonialsSection.tsx @@ -211,7 +211,7 @@ const SlickCarousel = () => { do { const idx = Math.floor(Math.random() * 6) + 1 imagePath = `/images/testimonial_images/testimonial-image-${idx}.png` - } while (lastMarketingImage !== imagePath) + } while (lastMarketingImage !== "" && lastMarketingImage !== imagePath) lastMarketingImage = imagePath