Skip to content

Commit

Permalink
fix: useSlider lint
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx committed Nov 27, 2024
1 parent 40bca43 commit b3123bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/blocks/Slider/useSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export const useSlider = ({children, autoplayMs, type, ...props}: UseSliderProps
slider.slidePrev();
};

const handleImagesReady = useCallback((slider: Swiper) => {
setTimeout(() => slider.update(), 100);
const handleImagesReady = useCallback((localSlider: Swiper) => {
setTimeout(() => localSlider.update(), 100);
}, []);

useEffect(() => {
Expand Down

0 comments on commit b3123bb

Please sign in to comment.