Match search query against contract answers

This commit is contained in:
James Grugett 2022-02-24 17:35:30 -06:00
parent 952b7be94a
commit 8305ecd667

View File

@ -214,7 +214,8 @@ export function SearchableGrid(props: {
check(c.description) ||
check(c.creatorName) ||
check(c.creatorUsername) ||
check(c.lowercaseTags.map((tag) => `#${tag}`).join(' '))
check(c.lowercaseTags.map((tag) => `#${tag}`).join(' ')) ||
check((c.answers ?? []).map((answer) => answer.text).join(' '))
)
if (sort === 'newest' || sort === 'all') {