@@ -9,7 +9,7 @@ class ContactItem {
this.groups = props.groups || [];
}
matchesAddressOrName(search) {
- if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0)[0].length > 0) {
+ if (this.addrs.filter(x => x.indexOf(search.trim()) >= 0).length > 0) {
return true;
return false;
@@ -17,7 +17,7 @@ export class ContactItem {
public matchesAddressOrName(search: string): boolean {