Skip to content

Commit

Permalink
Do not show clear all filters button if there is no filter applied in…
Browse files Browse the repository at this point in the history
… Discharge patients page #8449
  • Loading branch information
Sulochan-khadka committed Sep 3, 2024
1 parent 6245493 commit 7ea55cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/hooks/useFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export default function useFilters({
<FilterBadge {...props} name={t(props.name)} key={props.name} />
))}
{children}
{show && (
{activeFilters.length > 0 && (
<button
id="clear-all-filters"
className="rounded-full border border-secondary-300 bg-white px-2 py-1 text-xs text-secondary-600 hover:text-secondary-800"
Expand Down

0 comments on commit 7ea55cc

Please sign in to comment.