Skip to content

Commit

Permalink
Merge pull request #27552 from Pujan92/fix/26229
Browse files Browse the repository at this point in the history
Fix: "Assign task" appear in modal of "+" actions button in thread of flagging
  • Loading branch information
cristipaval authored Sep 18, 2023
2 parents 949a7d7 + 6837335 commit 6be8fca
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 @@ -498,7 +498,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 6be8fca

Please sign in to comment.