diff --git a/.env.sample b/.env.sample new file mode 100644 index 000000000..e69de29bb diff --git a/apps/web/src/components/Search/SearchDefaultSuggestedUsersSection.tsx b/apps/web/src/components/Search/SearchDefaultSuggestedUsersSection.tsx index b227687ca..c00994946 100644 --- a/apps/web/src/components/Search/SearchDefaultSuggestedUsersSection.tsx +++ b/apps/web/src/components/Search/SearchDefaultSuggestedUsersSection.tsx @@ -24,7 +24,7 @@ export default function SearchDefaultSuggestedUsersSection({ queryRef, variant, fragment SearchDefaultSuggestedUsersSectionFragment on Query { viewer @required(action: THROW) { ... on Viewer { - suggestedUsers(first: 2) @required(action: THROW) { + suggestedUsers(first: 4) @required(action: THROW) { __typename edges { node { @@ -57,7 +57,8 @@ export default function SearchDefaultSuggestedUsersSection({ queryRef, variant, .flatMap((edge) => (edge?.node ? [edge.node] : [])) .filter((user) => user?.galleries?.some((gallery) => removeNullValues(gallery?.tokenPreviews).length > 0) - ); + ) + ?.slice(0, 2); }, [query.viewer.suggestedUsers?.edges]); if (query.viewer?.suggestedUsers?.__typename !== 'UsersConnection' || !nonNullProfiles) {