Limit member search to 100

This commit is contained in:
Ian Philips 2022-07-13 16:24:35 -06:00
parent e1b6619e9c
commit 45fb3803c1

View File

@ -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(