Skip to content

Commit

Permalink
Merge pull request #32631 from tienifr/fix/30448
Browse files Browse the repository at this point in the history
Fix/30448 Edit request option is present for paid message and error shows up when editing paid IOU
  • Loading branch information
puneetlath authored Dec 14, 2023
2 parents b14b27f + c878912 commit 4aa6b03
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1813,6 +1813,10 @@ function canEditMoneyRequest(reportAction: OnyxEntry<ReportAction>, fieldToEdit
return true;
}

if (reportAction.originalMessage.type !== CONST.IOU.REPORT_ACTION_TYPE.CREATE) {
return false;
}

const moneyRequestReportID = reportAction?.originalMessage?.IOUReportID ?? 0;

if (!moneyRequestReportID) {
Expand Down

0 comments on commit 4aa6b03

Please sign in to comment.