Skip to content

Commit

Permalink
Merge pull request #516 from Studio-Yandex-Practicum/bugfix/image-gal…
Browse files Browse the repository at this point in the history
…lery-dots

Bugfix/fix slider dots
  • Loading branch information
AntonZelinsky authored Sep 9, 2024
2 parents f8dcaee + 1c005f4 commit a86c3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ui/image-slider/image-slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ImageSlider: React.FC<ImageSliderProps> = (props) => {
children
} = props;

const [currentSlide, setCurrentSlide] = useState(0);
const [currentSlide, setCurrentSlide] = useState(initialSlide);
const [loaded, setLoaded] = useState(false);
const [sliderRef, instanceRef] = useKeenSlider<HTMLDivElement>({
loop: true,
Expand Down

0 comments on commit a86c3f2

Please sign in to comment.