Skip to content

Commit

Permalink
fix professional domain util
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Oct 15, 2024
1 parent ce359a3 commit a5bb724
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/core/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { EmailsEndpoint } from '../types'
export const setProfessionalEmails = (
emails: EmailsEndpoint
): EmailsEndpoint => {
emails.emailDomains.forEach((domain) => {
emails.emails.forEach((email) => {
if (email.value.includes(domain.value)) {
emails?.emailDomains?.forEach((domain) => {
emails?.emails?.forEach((email) => {
if (email?.value?.includes(domain?.value)) {
email.professionalEmail = true
}
})
Expand Down

0 comments on commit a5bb724

Please sign in to comment.