From 79be49bcaea6b808d56537ca207ccf920f8f4c87 Mon Sep 17 00:00:00 2001 From: Arik Chakma Date: Fri, 6 Oct 2023 22:08:11 +0600 Subject: [PATCH] Fix team member list --- src/components/ShareOptions/ShareTeamMemberList.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ShareOptions/ShareTeamMemberList.tsx b/src/components/ShareOptions/ShareTeamMemberList.tsx index d23145fb6..6b1e4b35a 100644 --- a/src/components/ShareOptions/ShareTeamMemberList.tsx +++ b/src/components/ShareOptions/ShareTeamMemberList.tsx @@ -71,7 +71,10 @@ export function ShareTeamMemberList(props: ShareTeamMemberListProps) { return; } - membersCache.set(teamId, response); + const joinedMembers = response.filter( + (member) => member.status === 'joined' + ); + membersCache.set(teamId, joinedMembers); } useEffect(() => {