Skip to content

Commit

Permalink
Fix childrenTrek navigation if there are only 2 items
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Oct 14, 2024
1 parent 0844896 commit 840bbb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DetailsTrekFamilyCarousel: React.FC<DetailsTrekFamilyCarouselProps>
prevArrow={<Arrow isPrev />}
nextArrow={<Arrow />}
swipe={false}
slidesToShow={3}
slidesToShow={trekChildren.length > 2 ? 3 : 2}
slidesToScroll={2}
initialSlide={initialSlideId}
className="my-1.5 !flex items-center desktop:my-3"
Expand Down

0 comments on commit 840bbb3

Please sign in to comment.