diff --git a/src/components/ImageGallery.jsx b/src/components/ImageGallery.jsx index 52f50a6c..0ea69fb4 100644 --- a/src/components/ImageGallery.jsx +++ b/src/components/ImageGallery.jsx @@ -772,7 +772,7 @@ class ImageGallery extends React.Component { canSlideRight() { const { infinite, isRTL } = this.props; - return infinite || isRTL ? this.canSlidePrevious() : this.canSlideNext(); + return infinite || isRTL ? this.canSlidePrevious() : this.canSlideNext(); } canSlidePrevious() {