Skip to content

Commit

Permalink
fix: useSlider lint (#1082)
Browse files Browse the repository at this point in the history
  • Loading branch information
qradle-yndx authored and niktverd committed Jan 20, 2025
1 parent f5d2843 commit dfc94c5
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 dfc94c5

Please sign in to comment.