aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/screens/profile/InviteFriendsScreen.tsx4
1 files changed, 2 insertions, 2 deletions
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<InviteFriendsScreenProps> = ({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,