From 5cf616a6234b5f002318415e8e6f9ed73e10368d Mon Sep 17 00:00:00 2001 From: ankit-thanekar007 Date: Wed, 31 Mar 2021 14:08:03 -0700 Subject: Changes for empty contacts and text getting cut --- src/components/profile/Friends.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/components/profile') diff --git a/src/components/profile/Friends.tsx b/src/components/profile/Friends.tsx index 44f6bb48..b9ca4d7b 100644 --- a/src/components/profile/Friends.tsx +++ b/src/components/profile/Friends.tsx @@ -39,7 +39,7 @@ const Friends: React.FC = ({result, screenType, userId}) => { const permission = await checkPermission(); if (permission === 'authorized') { let response = await usersFromContactsService(contacts); - await setUsersFromContacts(response.existing_tagg_users); + setUsersFromContacts(response.existing_tagg_users); } else { console.log('Authorize access to contacts'); } @@ -84,7 +84,7 @@ const Friends: React.FC = ({result, screenType, userId}) => { return ( <> - {loggedInUser.userId === userId && ( + {loggedInUser.userId === userId && usersFromContacts.length !== 0 && ( Contacts on tagg -- cgit v1.2.3-70-g09d2