Skip to content

Commit

Permalink
Fix for filtering dApps in other category (#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 authored Jun 15, 2024
1 parent ef0c8a4 commit 3b0a7ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/staking-v3/components/vote/choose-dapps/DappsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) =>
Expand Down

0 comments on commit 3b0a7ea

Please sign in to comment.