diff --git a/src/components/Directory/CardViewDirectory.jsx b/src/components/Directory/CardViewDirectory.jsx
index 9ac982c6..e7583a9d 100644
--- a/src/components/Directory/CardViewDirectory.jsx
+++ b/src/components/Directory/CardViewDirectory.jsx
@@ -33,7 +33,7 @@ const CardViewDirectory = ({
(contact?.name || "").trim().split(" ")[1]?.charAt(0) || ""
}
/>{" "}
- {contact.name}
+ {contact?.name}
- -
-
-
- -
- {contact.organization}
-
-
-
+
+
+
+
+ {contact.organization}
+
+
{
if (IsActive) {
setIsOpenModalNote(true);
@@ -114,17 +113,16 @@ const CardViewDirectory = ({
}}
>
- {contact.contactEmails[0] && (
-
- -
-
-
- -
- {contact.contactEmails[0].emailAddress}
-
-
-)}
-
+ {contact.contactEmails[0] && (
+
+ -
+
+
+ -
+ {contact.contactEmails[0].emailAddress}
+
+
+ )}
{contact.contactPhones[0] && (
@@ -141,17 +139,26 @@ const CardViewDirectory = ({
)}
-
- -
-
-
- -
- {contact.contactCategory.name}
-
-
+ {contact?.contactCategory?.name ? (
+
+ -
+
+
+ -
+ {contact?.contactCategory?.name}
+
+
+ ) : (
+
+ )}
- {contact.bucketIds?.map((bucketId) => (
+ {contact?.bucketIds?.map((bucketId) => (
-
- {contact.contactEmails?.map((email, index) => (
+ {contact.contactEmails.length > 0 ? (contact.contactEmails?.map((email, index) => (
- ))}
+ ))):(NA)}