From 370ee9ae4b2fb557dbe1405b31bfabd33a9bb115 Mon Sep 17 00:00:00 2001 From: shadrach Date: Thu, 7 Nov 2024 14:52:21 -0600 Subject: [PATCH] quick fix --- src/components/molecules/CommunityMembers.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/molecules/CommunityMembers.tsx b/src/components/molecules/CommunityMembers.tsx index 78b7699..853f71a 100644 --- a/src/components/molecules/CommunityMembers.tsx +++ b/src/components/molecules/CommunityMembers.tsx @@ -186,10 +186,10 @@ export default function CommunityMembers({ >
- {getNameTag(member.user.name)} + {getNameTag(member?.user?.name)}
-

{member.user.name}

+

{member?.user?.name}

{member.role}

@@ -215,6 +215,7 @@ export default function CommunityMembers({ } const getNameTag = (name: string) => { + if (!name) return 'ANON' const split = name?.split(" "); return (split[0]?.[0] ?? "") + (split?.[1]?.[0] ?? ""); };