Skip to content

Commit

Permalink
Merge branch 'develop' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponchimeow committed Dec 11, 2023
2 parents 195c085 + f5457b6 commit 1c24fa8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/sale/SalesLeadTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,12 @@ const SalesLeadTable: React.VFC<{

const nameAndEmailMatch = matchesFilter(nameAndEmail)(name + email + fullName)

const phoneMatch = matchesFilter(phone)(phones.join(''))
const phoneMatch = matchesFilter(phone)(
phones
.filter(phone => phone.isValid)
.map(phone => phone.phoneNumber)
.join(''),
)

const categoryNameMatch = matchesFilter(categoryName)(categoryNames.join(''))

Expand Down

0 comments on commit 1c24fa8

Please sign in to comment.