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}
{IsActive && ( @@ -68,7 +68,7 @@ const CardViewDirectory = ({
  • IsDeleted(contact.id)} + onClick={() => IsDeleted(contact?.id)} > Delete @@ -95,17 +95,16 @@ const CardViewDirectory = ({
  • - +
  • + +
  • +
  • + {contact.organization} +
  • +
    { if (IsActive) { setIsOpenModalNote(true); @@ -114,17 +113,16 @@ const CardViewDirectory = ({ }} >
    - {contact.contactEmails[0] && ( - -)} - + {contact.contactEmails[0] && ( + + )} {contact.contactPhones[0] && ( )} - + {contact?.contactCategory?.name ? ( + + ) : ( + + )}