Skip to content

Commit

Permalink
fix edit option appears in offline
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Jul 22, 2024
1 parent 163108f commit 78f1385
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 @@ -2780,7 +2780,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.isAttachmentOnly) || !reportAction.isOptimisticAction) &&
!ReportActionsUtils.isDeletedAction(reportAction) &&
!ReportActionsUtils.isCreatedTaskReportAction(reportAction) &&
reportAction?.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE
Expand Down

0 comments on commit 78f1385

Please sign in to comment.