Skip to content

Commit

Permalink
shouldShowGreenDotIndicator needs managerID in optionItem
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuoch committed Jul 14, 2023
1 parent 627f4cd commit cae3c44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,6 @@ function isWaitingForIOUActionFromCurrentUser(report) {
reportToLook = iouReport;
}
}

// Money request waiting for current user to Pay (from chat or from iou report)
if (reportToLook.ownerAccountID && (reportToLook.ownerAccountID !== currentUserAccountID || currentUserAccountID === reportToLook.managerID) && reportToLook.hasOutstandingIOU) {
return true;
Expand Down
2 changes: 2 additions & 0 deletions src/libs/SidebarUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ function getOptionData(reportID) {
participantsList: null,
login: null,
accountID: null,
managerID: null,
reportID: null,
phoneNumber: null,
payPalMeAddress: null,
Expand Down Expand Up @@ -280,6 +281,7 @@ function getOptionData(reportID) {
result.allReportErrors = OptionsListUtils.getAllReportErrors(report, reportActions);
result.brickRoadIndicator = !_.isEmpty(result.allReportErrors) ? CONST.BRICK_ROAD_INDICATOR_STATUS.ERROR : '';
result.ownerAccountID = report.ownerAccountID;
result.managerID = report.managerID;
result.reportID = report.reportID;
result.isUnread = ReportUtils.isUnread(report);
result.isUnreadWithMention = ReportUtils.isUnreadWithMention(report);
Expand Down

0 comments on commit cae3c44

Please sign in to comment.