AddressBook: fix handling of contacts with empty names.

Fixes #49
master
Tom Hacohen 5 years ago
parent c0c5af0cab
commit ea67bb4b87

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

Loading…
Cancel
Save