AddressBook: fix search when there are contacts with a full name.

master
Tom Hacohen 5 years ago
parent 28c3a8395b
commit cac9b21135

@ -57,7 +57,7 @@ class SearchableAddressBook extends React.PureComponent {
</IconButton>
}
<IconSearch />
<AddressBook entries={entries} filter={(ent: ContactType) => ent.fn.match(reg)} {...rest} />
<AddressBook entries={entries} filter={(ent: ContactType) => ent.fn?.match(reg)} {...rest} />
</React.Fragment>
);
}

Loading…
Cancel
Save