From 683733518e789ba6d7c7b74b106ac6cb904d3cb7 Mon Sep 17 00:00:00 2001 From: Pujan Date: Fri, 15 Sep 2023 23:40:10 +0530 Subject: [PATCH] used filtered reportParticipants --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index f24959c4bac2..d12cd6c6016d 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -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)); } /**