diff --git a/src/components/Attachments/AttachmentCarousel/index.js b/src/components/Attachments/AttachmentCarousel/index.js index cec5f54508cbd..53c2c840d95db 100644 --- a/src/components/Attachments/AttachmentCarousel/index.js +++ b/src/components/Attachments/AttachmentCarousel/index.js @@ -156,7 +156,7 @@ function AttachmentCarousel({report, reportActions, source, onNavigate, setDownl file={item.file} isAuthTokenRequired={item.isAuthTokenRequired} isFocused={activeSource === item.source} - onPress={() => canUseTouchScreen && setShouldShowArrows(!shouldShowArrows)} + onPress={canUseTouchScreen ? () => setShouldShowArrows(!shouldShowArrows) : undefined} isUsedInCarousel /> ),