Skip to content

Commit

Permalink
Simplifying
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bizz committed Dec 11, 2024
1 parent c2753c1 commit 754484a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const DeleteContactModal: React.FC<DeleteContactModalProps> = ({
}
});

contactSources.people?.nodes?.forEach((person) => {
contactSources.people?.nodes.forEach((person) => {
person.emailAddresses.nodes.forEach((email) => {
if (!isEditableSource(email.source)) {
emailSources.add(email.source);
Expand All @@ -97,7 +97,7 @@ export const DeleteContactModal: React.FC<DeleteContactModalProps> = ({

return {
canDeleteWithoutIssues:
isEditableSource(contactSources.source ?? '') &&
isEditableSource(contactSources.source ?? undefined) &&
!addressSources.size &&
!emailSources.size &&
!phoneSources.size,
Expand Down Expand Up @@ -132,7 +132,7 @@ export const DeleteContactModal: React.FC<DeleteContactModalProps> = ({
</Typography>
<Typography fontWeight="bold">
{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.`,
)}
</Typography>
<br />
Expand Down

0 comments on commit 754484a

Please sign in to comment.