Skip to content

Commit

Permalink
edit comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jan 23, 2024
1 parent 3bd5950 commit e16d282
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ function ReportActionItem(props) {
const iouReportID = originalMessage.IOUReportID ? originalMessage.IOUReportID.toString() : '0';
children = (
<MoneyRequestAction
// If iouReportID exists in originalMessage that mean the request is 1:1 request and the its chat report is the report which contain report preview action.
// Otherwise the request is bill splits and the chat report is the report that contains it.
// If originalMessage.iouReportID is set, this is a 1:1 money request in a DM chat whose reportID is props.report.chatReportID
chatReportID={originalMessage.IOUReportID ? props.report.chatReportID : props.report.reportID}
requestReportID={iouReportID}
action={props.action}
Expand Down

0 comments on commit e16d282

Please sign in to comment.