Skip to content

Commit

Permalink
replace deprecated use of action.originalMessage with ReportActionUti…
Browse files Browse the repository at this point in the history
…ls.getOriginalMessage
  • Loading branch information
cdOut committed Jun 21, 2024
1 parent 368b7b3 commit 34b36f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
);
}, [report, icons, isMoneyRequestReport, isInvoiceReport, isGroupChat, isThread, styles]);

const iouTransactionID = requestParentReportAction?.actionName === CONST.REPORT.ACTIONS.TYPE.IOU ? requestParentReportAction?.originalMessage?.IOUTransactionID ?? '' : '';
const iouTransactionID = ReportActionsUtils.isMoneyRequestAction(requestParentReportAction) ? ReportActionsUtils.getOriginalMessage(requestParentReportAction)?.IOUTransactionID ?? '' : '';

const isSettled = ReportUtils.isSettled(moneyRequestReport?.reportID);
const isApproved = ReportUtils.isReportApproved(moneyRequestReport);
Expand Down

0 comments on commit 34b36f0

Please sign in to comment.