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); } };