Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jan 19, 2024
1 parent 7fcdc58 commit 3bd5950
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ 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.
chatReportID={originalMessage.IOUReportID ? props.report.chatReportID : props.report.reportID}
requestReportID={iouReportID}
action={props.action}
Expand Down

0 comments on commit 3bd5950

Please sign in to comment.