From 7bde6b3266aec87f6570ba0e240dd29197e827b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=B3vis=20Neto?= Date: Mon, 9 Sep 2024 16:32:32 +0200 Subject: [PATCH] fix: Consider app category in the searchbar query filter --- src/hooks/safe-apps/useAppsSearch.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hooks/safe-apps/useAppsSearch.ts b/src/hooks/safe-apps/useAppsSearch.ts index f2f57ad413..900b8e18ef 100644 --- a/src/hooks/safe-apps/useAppsSearch.ts +++ b/src/hooks/safe-apps/useAppsSearch.ts @@ -15,6 +15,10 @@ const useAppsSearch = (apps: SafeAppData[], query: string): SafeAppData[] => { name: 'description', weight: 0.5, }, + { + name: 'tags', + weight: 0.99, + }, ], // https://fusejs.io/api/options.html#threshold // Very naive explanation: threshold represents how accurate the search results should be. The default is 0.6