diff --git a/phone/src/apps/contacts/components/views/ContactInfo.tsx b/phone/src/apps/contacts/components/views/ContactInfo.tsx index bf147cf..9235746 100644 --- a/phone/src/apps/contacts/components/views/ContactInfo.tsx +++ b/phone/src/apps/contacts/components/views/ContactInfo.tsx @@ -79,9 +79,9 @@ const ContactsInfoPage = () => { const contact = getContact(parseInt(id)); // Set state after checking if null - const [name, setName] = useState(contact ? contact.display : contact); - const [number, setNumber] = useState(contact ? contact.number : contact); - const [avatar, setAvatar] = useState(contact ? contact.avatar : contact); + const [name, setName] = useState(contact ? contact.display : ''); + const [number, setNumber] = useState(contact ? contact.number : ''); + const [avatar, setAvatar] = useState(contact ? contact.avatar : ''); const { t } = useTranslation(); @@ -132,11 +132,7 @@ const ContactsInfoPage = () => {
- {avatar ? ( - - ) : ( - - )} +