From 8305ecd66708dfa044c19b58692e9280d6db75dd Mon Sep 17 00:00:00 2001 From: James Grugett Date: Thu, 24 Feb 2022 17:35:30 -0600 Subject: [PATCH] Match search query against contract answers --- web/components/contracts-list.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/components/contracts-list.tsx b/web/components/contracts-list.tsx index f8f41527..6fc49780 100644 --- a/web/components/contracts-list.tsx +++ b/web/components/contracts-list.tsx @@ -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') {