From 45fb3803c1c31ed45724fb52d14e4b67111deede Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Wed, 13 Jul 2022 16:24:35 -0600 Subject: [PATCH] Limit member search to 100 --- web/pages/group/[...slugs]/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/pages/group/[...slugs]/index.tsx b/web/pages/group/[...slugs]/index.tsx index 91e6f998..43647cdb 100644 --- a/web/pages/group/[...slugs]/index.tsx +++ b/web/pages/group/[...slugs]/index.tsx @@ -428,7 +428,8 @@ function SearchBar(props: { setQuery: (query: string) => void }) { function GroupMemberSearch(props: { group: Group }) { const [query, setQuery] = useState('') - const members = useMembers(props.group) + const { group } = props + const members = useMembers(group, 100) // TODO use find-active-contracts to sort by? const matches = sortBy(members, [(member) => member.name]).filter(