diff --git a/src/utils/common.ts b/src/utils/common.ts index 773b5432..a6458cbc 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -6,7 +6,7 @@ import { CarouselInternalState, CarouselProps } from "../types"; function notEnoughChildren(state: CarouselInternalState): boolean { const { slidesToShow, totalItems } = state; - return totalItems < slidesToShow; + return totalItems <= slidesToShow; } function getInitialState(