Skip to content

Commit

Permalink
Update packages/components/src/templates/next/layouts/Collection/util…
Browse files Browse the repository at this point in the history
…s.ts

Co-authored-by: Hsu Zhong Jun <27919917+dcshzj@users.noreply.github.com>
  • Loading branch information
adriangohjw and dcshzj authored Jan 3, 2025
1 parent cf20aa4 commit 7748466
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const updateAppliedFilters = (

// use filters generated as the single source of truth
export const shouldShowCategory = (filters: Filter[]): boolean => {
return Boolean(filters.find((filter) => filter.id === FILTER_ID_CATEGORY))
return filters.some((filter) => filter.id === FILTER_ID_CATEGORY)
}

export const shouldShowDate = (
Expand Down

0 comments on commit 7748466

Please sign in to comment.