diff --git a/src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.tsx b/src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.tsx index b3beddc9e..d6c2bdba5 100644 --- a/src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.tsx +++ b/src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.tsx @@ -82,7 +82,7 @@ export const DeleteContactModal: React.FC = ({ } }); - contactSources.people?.nodes?.forEach((person) => { + contactSources.people?.nodes.forEach((person) => { person.emailAddresses.nodes.forEach((email) => { if (!isEditableSource(email.source)) { emailSources.add(email.source); @@ -97,7 +97,7 @@ export const DeleteContactModal: React.FC = ({ return { canDeleteWithoutIssues: - isEditableSource(contactSources.source ?? '') && + isEditableSource(contactSources.source ?? undefined) && !addressSources.size && !emailSources.size && !phoneSources.size, @@ -132,7 +132,7 @@ export const DeleteContactModal: React.FC = ({ {t( - `For contacts originating from Siebel or Donor Hub, email Donation Services to request deletion.`, + `For contacts originating from Donation Services or DonorHub, email Donation Services to request deletion.`, )}