From f76e7c52fa9fe1365c234535f095efe4d815a16a Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 19 Mar 2021 23:11:46 -0700 Subject: missed --- src/screens/profile/InviteFriendsScreen.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/screens/profile/InviteFriendsScreen.tsx b/src/screens/profile/InviteFriendsScreen.tsx index b68da127..cc783b25 100644 --- a/src/screens/profile/InviteFriendsScreen.tsx +++ b/src/screens/profile/InviteFriendsScreen.tsx @@ -98,10 +98,10 @@ const InviteFriendsScreen: React.FC = ({route}) => { ); const searchResultsNonUsers = nonUsersFromContacts.filter( (item) => - item.lastName.toLowerCase().includes(query) || + item.lastName.toLowerCase().startsWith(query) || (item.firstName + ' ' + item.lastName) .toLowerCase() - .includes(query), + .startsWith(query), ); const sanitizedResult = { usersFromContacts: searchResultsUsers, -- cgit v1.2.3-70-g09d2