Skip to content

Commit

Permalink
fix total facility card loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
sriharsh05 committed Dec 26, 2023
1 parent c2e93ab commit dcee768
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/Components/Facility/HospitalList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,13 @@ export const HospitalList = () => {
}
>
<div className="mt-4 gap-2 lg:flex">
{permittedData && (
<CountBlock
text="Total Facilities"
count={permittedData.count}
loading={isLoading}
icon="l-hospital"
className="flex-1"
/>
)}
<CountBlock
text="Total Facilities"
count={permittedData ? permittedData.count : 0}
loading={isLoading}
icon="l-hospital"
className="flex-1"
/>
<div className="my-4 flex grow flex-col justify-between gap-2 sm:flex-row">
<SearchInput
name="search"
Expand Down

0 comments on commit dcee768

Please sign in to comment.