From c27c9cb2de165d619ae24e4b668fa166228fa56a Mon Sep 17 00:00:00 2001 From: chip Date: Sat, 17 Oct 2020 00:16:56 +0200 Subject: [PATCH] Fix(Contacts:UI): Fix for using correct mapping property --- phone/src/apps/contacts/components/ContactModal.tsx | 2 +- phone/src/apps/contacts/components/List/ContactList.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/phone/src/apps/contacts/components/ContactModal.tsx b/phone/src/apps/contacts/components/ContactModal.tsx index e4391dd..f285b44 100644 --- a/phone/src/apps/contacts/components/ContactModal.tsx +++ b/phone/src/apps/contacts/components/ContactModal.tsx @@ -103,7 +103,7 @@ export const AddContactModal = () => { fullWidth placeholder="Number" variant="standard" - type="number" + type="text" /> diff --git a/phone/src/apps/contacts/components/List/ContactList.tsx b/phone/src/apps/contacts/components/List/ContactList.tsx index b968b86..43cc1e2 100644 --- a/phone/src/apps/contacts/components/List/ContactList.tsx +++ b/phone/src/apps/contacts/components/List/ContactList.tsx @@ -37,8 +37,8 @@ export const ContactList = () => { {contacts.contacts.filter(contact => contact.display.includes(filteredContacts) || contact.number.includes(filteredContacts)).map((contact) => ( - {contact.img ? ( - + {contact.avatar ? ( + ): ( {contact.display.slice(0, 1)} )}