From 8fe360751e2eced4050a1cdaa2b53cf9ad004991 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 17 Nov 2019 19:31:03 +0200 Subject: [PATCH] Address book: handle contact names with length 0. We were handling non existent contact names, but not ones with length 0. This fixes this. Fixes #62. --- 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 098ea4d..6a9e4cb 100644 --- a/src/components/AddressBook.tsx +++ b/src/components/AddressBook.tsx @@ -49,7 +49,7 @@ const AddressBookItem = React.memo((_props: any) => { - {name && name[0].toUpperCase()} + {name && name[0] && name[0].toUpperCase()} } primaryText={name} onClick={() => onClick(entry)}