diff --git a/src/components/Attachments/AttachmentCarousel/CarouselButtons.js b/src/components/Attachments/AttachmentCarousel/CarouselButtons.js index e19f7617bb28..d33659fd04ae 100644 --- a/src/components/Attachments/AttachmentCarousel/CarouselButtons.js +++ b/src/components/Attachments/AttachmentCarousel/CarouselButtons.js @@ -40,7 +40,7 @@ function CarouselButtons({page, attachments, shouldShowArrows, onBack, onForward const isForwardDisabled = page === _.size(attachments) - 1; const {translate} = useLocalize(); - const {isSmallScreenWidth} = useWindowDimensions; + const {isSmallScreenWidth} = useWindowDimensions(); return shouldShowArrows ? ( <>