From 9dde041c99c92e4c6e200d66cd927da38bdd0869 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 18 Dec 2022 00:13:44 -0600 Subject: [PATCH] New: Search by description on add indexer modal Fixes #1000 --- frontend/src/Indexer/Add/AddIndexerModalContent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Indexer/Add/AddIndexerModalContent.js b/frontend/src/Indexer/Add/AddIndexerModalContent.js index 236e0d747..f334af39e 100644 --- a/frontend/src/Indexer/Add/AddIndexerModalContent.js +++ b/frontend/src/Indexer/Add/AddIndexerModalContent.js @@ -123,7 +123,7 @@ class AddIndexerModalContent extends Component { const filteredIndexers = indexers.filter((indexer) => { const { filter, filterProtocols, filterLanguages, filterPrivacyLevels } = this.state; - if (!indexer.name.toLowerCase().includes(filter.toLocaleLowerCase())) { + if (!indexer.name.toLowerCase().includes(filter.toLocaleLowerCase()) && !indexer.description.toLowerCase().includes(filter.toLocaleLowerCase())) { return false; }