AddressBook: fix handling of contacts with empty names.

Fixes #49
master
Tom Hacohen 2019-09-02 15:36:46 +01:00
parent c0c5af0cab
commit ea67bb4b87
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const AddressBookItem = pure((_props: any) => {
<ListItem
leftIcon={
<Avatar style={{backgroundColor: getContactColor(entry)}}>
{name[0].toUpperCase()}
{name && name[0].toUpperCase()}
</Avatar>}
primaryText={name}
onClick={() => onClick(entry)}