From d50a1c7d95a8b88792906cba0b7e79566b214849 Mon Sep 17 00:00:00 2001 From: Sam Hillier Date: Sat, 9 Mar 2024 16:58:12 +0000 Subject: [PATCH] Add collection search --- frontend/src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 575028b..686d22d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -34,7 +34,8 @@ const App = () => { }); if (searchQuery) { result = result.filter((token: Token) => - token.name.toLowerCase().includes(searchQuery.toLowerCase()) + token.name.toLowerCase().includes(searchQuery.toLowerCase()) || + token.collection.toLowerCase().includes(searchQuery.toLowerCase()) ); } return result;