From ea67bb4b8756a07ead4c504b3979482b28b9e0f5 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 2 Sep 2019 15:36:46 +0100 Subject: [PATCH] AddressBook: fix handling of contacts with empty names. Fixes #49 --- src/components/AddressBook.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AddressBook.tsx b/src/components/AddressBook.tsx index a9b4039..5514b00 100644 --- a/src/components/AddressBook.tsx +++ b/src/components/AddressBook.tsx @@ -50,7 +50,7 @@ const AddressBookItem = pure((_props: any) => { - {name[0].toUpperCase()} + {name && name[0].toUpperCase()} } primaryText={name} onClick={() => onClick(entry)}