From 6a54171ea56d64423947f7f4f8d62d3c16d2409d Mon Sep 17 00:00:00 2001 From: Lucif3r-in Date: Sun, 1 Oct 2023 15:34:57 +0530 Subject: [PATCH] fix: made changes --- components/Testimonial.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Testimonial.js b/components/Testimonial.js index 77e44a49d5a..52b48f2a2ec 100644 --- a/components/Testimonial.js +++ b/components/Testimonial.js @@ -20,11 +20,11 @@ const TestimonialCarousel = () => { }; useEffect(() => { - const interval = setInterval(goToNext, 3000); + const interval = setInterval(goToNext, 10000); return () => { clearInterval(interval); }; - }, []); + }, [activeIndex]); return (