Skip to content

Commit

Permalink
Make the condition for empty qParam check more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Omkar76 committed Jan 17, 2024
1 parent 05ebc9b commit 6498da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Facility/HospitalList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const HospitalList = () => {
});

useEffect(() => {
if (!Object.keys(qParams).length) return;
if (Object.keys(qParams).length === 0) return;
if (!qParams.state) {
advancedFilter.removeFilters(["district", "local_body"]);
}
Expand Down

0 comments on commit 6498da4

Please sign in to comment.