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 <ListItem
leftIcon={ leftIcon={
<Avatar style={{backgroundColor: getContactColor(entry)}}> <Avatar style={{backgroundColor: getContactColor(entry)}}>
{name[0].toUpperCase()} {name && name[0].toUpperCase()}
</Avatar>} </Avatar>}
primaryText={name} primaryText={name}
onClick={() => onClick(entry)} onClick={() => onClick(entry)}

Loading…
Cancel
Save