Skip to content

Commit

Permalink
Fix pincode district name comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Dec 22, 2023
1 parent 9fc041c commit d73110f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ export const PatientRegister = (props: PatientRegisterProps) => {
if (!fetchedDistricts) return;

const matchedDistrict = fetchedDistricts.find((district) => {
return includesIgnoreCase(district.name, pincodeDetails.district);
return includesIgnoreCase(district.name, pincodeDetails.districtname);
});
if (!matchedDistrict) return;

Expand Down

0 comments on commit d73110f

Please sign in to comment.