Skip to content

Commit

Permalink
Update src/libs/ReportUtils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Vinh Hoang <hoangzinhvn@gmail.com>
  • Loading branch information
nkdengineer and hoangzinh authored Jul 17, 2024
1 parent ba2e219 commit beb4551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2762,7 +2762,7 @@ function canEditReportAction(reportAction: OnyxInputOrEntry<ReportAction>): bool
isCommentOrIOU &&
(!ReportActionsUtils.isMoneyRequestAction(reportAction) || canEditMoneyRequest(reportAction)) && // Returns true for non-IOU actions
!isReportMessageAttachment(message) &&
(!!reportAction.isAttachmentWithText || !reportAction.isOptimisticAction) &&
(!reportAction.isAttachmentWithText || !reportAction.isOptimisticAction) &&
!ReportActionsUtils.isDeletedAction(reportAction) &&
!ReportActionsUtils.isCreatedTaskReportAction(reportAction) &&
reportAction?.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE
Expand Down

0 comments on commit beb4551

Please sign in to comment.