diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js index 14eea14a8e6c..3da4af50bdb2 100644 --- a/src/pages/home/report/ReportActionCompose.js +++ b/src/pages/home/report/ReportActionCompose.js @@ -950,7 +950,7 @@ function ReportActionCompose({ /** * Event handler to update the state after the attachment preview is closed. */ - const attachmentPreviewClosed = useCallback(() => { + const onAttachmentPreviewClose = useCallback(() => { shouldBlockEmojiCalc.current = false; shouldBlockMentionCalc.current = false; setIsAttachmentPreviewActive(false); @@ -1062,7 +1062,7 @@ function ReportActionCompose({ headerTitle={translate('reportActionCompose.sendAttachment')} onConfirm={addAttachment} onModalShow={() => setIsAttachmentPreviewActive(true)} - onModalHide={attachmentPreviewClosed} + onModalHide={onAttachmentPreviewClose} > {({displayFileInModal}) => ( <>