diff --git a/src/pages/ReportDetailsPage.tsx b/src/pages/ReportDetailsPage.tsx index 88611c600d8f..886a7d21ab2d 100644 --- a/src/pages/ReportDetailsPage.tsx +++ b/src/pages/ReportDetailsPage.tsx @@ -145,6 +145,10 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD // Get the active chat members by filtering out the pending members with delete action const activeChatMembers = participants.flatMap((accountID) => { const pendingMember = report?.pendingChatMembers?.findLast((member) => member.accountID === accountID.toString()); + const detail = personalDetails?.[accountID]; + if (!detail) { + return []; + } return !pendingMember || pendingMember.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE ? accountID : []; });