Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
razzeee committed Nov 14, 2024
1 parent 3311428 commit 66bdcd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/application/CarouselStrip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ export const CarouselStrip = ({ app }: { app: Appstream }) => {
useEffect(() => {
setCurrentIndex(0)
}, [])
const lightboxState = ref.current?.getLightboxState()

useEffect(() => {
setCurrentIndex(lightboxState?.currentIndex)
}, [lightboxState?.currentIndex])
setCurrentIndex(ref.current?.getLightboxState()?.currentIndex)
}, [])

if (app.type === "addon" || !app.screenshots) {
return null
Expand Down

0 comments on commit 66bdcd8

Please sign in to comment.