From 89c6382d4cf140cbdd8bac37216baa48550d76df Mon Sep 17 00:00:00 2001 From: Ashesh <3626859+Ashesh3@users.noreply.github.com> Date: Fri, 22 Dec 2023 18:38:44 +0530 Subject: [PATCH] Fix pincode district name comparison (#6894) --- src/Components/Patient/PatientRegister.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Patient/PatientRegister.tsx b/src/Components/Patient/PatientRegister.tsx index f2683f2f775..77088ef57e7 100644 --- a/src/Components/Patient/PatientRegister.tsx +++ b/src/Components/Patient/PatientRegister.tsx @@ -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;