Skip to content

Commit

Permalink
Fixed-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sulochan-khadka committed Sep 4, 2024
1 parent 7ea55cc commit aae7932
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
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}
{activeFilters.length > 0 && (
{show && (
<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
15 changes: 9 additions & 6 deletions src/Components/Facility/DischargedPatientsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,15 @@ const DischargedPatientsList = ({
),
]}
children={
<>
{qParams.last_consultation_admitted_bed_type_list &&
LastAdmittedToTypeBadges()}
{qParams.last_consultation__consent_types &&
HasConsentTypesBadges()}
</>
(qParams.last_consultation_admitted_bed_type_list ||
qParams.last_consultation__consent_types) && (
<>
{qParams.last_consultation_admitted_bed_type_list &&
LastAdmittedToTypeBadges()}
{qParams.last_consultation__consent_types &&
HasConsentTypesBadges()}
</>
)
}
/>
</div>
Expand Down

0 comments on commit aae7932

Please sign in to comment.