From 3b0a7ea6d5bf4ebc942d8e93fb25dcb51374a575 Mon Sep 17 00:00:00 2001 From: Bobo Date: Sat, 15 Jun 2024 18:58:15 +0200 Subject: [PATCH] Fix for filtering dApps in other category (#1322) --- src/staking-v3/components/vote/choose-dapps/DappsList.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/staking-v3/components/vote/choose-dapps/DappsList.vue b/src/staking-v3/components/vote/choose-dapps/DappsList.vue index 35afedc3e..176f37ad0 100644 --- a/src/staking-v3/components/vote/choose-dapps/DappsList.vue +++ b/src/staking-v3/components/vote/choose-dapps/DappsList.vue @@ -87,13 +87,16 @@ export default defineComponent({ if (props.category && props.filter) { return props.dapps.filter( (dapp) => - dapp.mainCategory?.toLowerCase() === props.category?.toLowerCase() && + (dapp.mainCategory?.toLowerCase() === props.category?.toLowerCase() || + dapp.mainCategory === undefined) && dapp.name.toLowerCase().includes(props.filter.toLowerCase()) ); } if (props.category) { return props.dapps.filter( - (dapp) => dapp.mainCategory?.toLowerCase() === props.category?.toLowerCase() + (dapp) => + dapp.mainCategory?.toLowerCase() === props.category?.toLowerCase() || + dapp.mainCategory === undefined ); } else if (props.filter) { return props.dapps.filter((dapp) =>