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

master
Tom Hacohen 2020-01-26 10:48:26 +02:00
parent 28c3a8395b
commit cac9b21135
1 changed files with 1 additions and 1 deletions

View File

@ -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>
);
}