Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/services/checks/duplicateTypes.js
Original file line number Diff line number Diff line change
@@ -26,12 +26,9 @@ export default {
try {
const props = contact.vCard.getAllProperties()
.map(prop => prop.getParameter('type'))
.filter(prop => prop)
.filter(prop => Array.isArray(prop))
const fixed = props.map(prop => [...new Set(prop)])
if (props
&& Array.isArray(props)
&& props.length > 0
&& props.join('') !== fixed.join('')) {
if (props.join('') !== fixed.join('')) {
return true
}
} catch (error) {

0 comments on commit f8435e9

Please sign in to comment.