From 09dc6d4a6a4df45db2bd55b68ad7edce11601867 Mon Sep 17 00:00:00 2001 From: Mert Can Altin Date: Tue, 3 Sep 2024 10:27:47 +0300 Subject: [PATCH] right problem solved --- src/components/carousel/index.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/carousel/index.tsx b/src/components/carousel/index.tsx index 84e9c4a..afa9655 100644 --- a/src/components/carousel/index.tsx +++ b/src/components/carousel/index.tsx @@ -94,12 +94,7 @@ export const Carousel: FunctionComponent = (userProps: CarouselPr props.autoSwipe > props.transition ) { autoSwipeTimer.current = window.setTimeout(() => { - if (showArrow.right) { - slide(SlideDirection.Right); - } else { - slide(SlideDirection.Left); - } - autoSwipe(); + slide(SlideDirection.Right); }, props.autoSwipe); } };