From aaffe37fbe2e5129cdf9b0e0c613c79d51d0b8cb Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Mon, 22 May 2023 22:09:38 +0530 Subject: [PATCH] fix: Showing status for accounts not created in the workspace members (#1111) --- apps/app/pages/[workspaceSlug]/settings/members.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/app/pages/[workspaceSlug]/settings/members.tsx b/apps/app/pages/[workspaceSlug]/settings/members.tsx index 4e6e4f579..fd80de11b 100644 --- a/apps/app/pages/[workspaceSlug]/settings/members.tsx +++ b/apps/app/pages/[workspaceSlug]/settings/members.tsx @@ -66,6 +66,7 @@ const MembersSettings: NextPage = () => { role: item.role, status: true, member: true, + accountCreated: true, })) || []), ...(workspaceInvitations?.map((item) => ({ id: item.id, @@ -77,6 +78,7 @@ const MembersSettings: NextPage = () => { role: item.role, status: item.accepted, member: false, + accountCreated: item?.accepted ? false : true, })) || []), ]; @@ -200,6 +202,11 @@ const MembersSettings: NextPage = () => {

Pending

)} + {member?.status && !member?.accountCreated && ( +
+

Account not created

+
+ )}