Skip to content

Commit

Permalink
used filtered reportParticipants
Browse files Browse the repository at this point in the history
  • Loading branch information
Pujan92 committed Sep 15, 2023
1 parent 191bda1 commit 6837335
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function shouldDisableDetailPage(report) {
*/
function isExpensifyOnlyParticipantInReport(report) {
const reportParticipants = _.without(lodashGet(report, 'participantAccountIDs', []), currentUserAccountID);
return lodashGet(report, 'participantAccountIDs', []).length === 1 && _.some(reportParticipants, (accountID) => _.contains(CONST.EXPENSIFY_ACCOUNT_IDS, accountID));
return reportParticipants.length === 1 && _.some(reportParticipants, (accountID) => _.contains(CONST.EXPENSIFY_ACCOUNT_IDS, accountID));
}

/**
Expand Down

0 comments on commit 6837335

Please sign in to comment.