Skip to content

Commit

Permalink
rename callback
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Aug 15, 2023
1 parent 2671883 commit 479f317
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -1062,7 +1062,7 @@ function ReportActionCompose({
headerTitle={translate('reportActionCompose.sendAttachment')}
onConfirm={addAttachment}
onModalShow={() => setIsAttachmentPreviewActive(true)}
onModalHide={attachmentPreviewClosed}
onModalHide={onAttachmentPreviewClose}
>
{({displayFileInModal}) => (
<>
Expand Down

0 comments on commit 479f317

Please sign in to comment.