From 5303d73de4406f628e196589f9df770b73ab251a Mon Sep 17 00:00:00 2001 From: khavinshankar Date: Thu, 26 Oct 2023 12:06:26 +0530 Subject: [PATCH] fix phone number parsing issue in abdm --- src/Components/Patient/PatientRegister.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Patient/PatientRegister.tsx b/src/Components/Patient/PatientRegister.tsx index 4fc6fef7fbe..57a06877269 100644 --- a/src/Components/Patient/PatientRegister.tsx +++ b/src/Components/Patient/PatientRegister.tsx @@ -918,12 +918,12 @@ export const PatientRegister = (props: PatientRegisterProps) => { if (mobile) { field("phone_number").onChange({ name: "phone_number", - value: parsePhoneNumber(mobile), + value: parsePhoneNumber(mobile, "IN"), }); field("emergency_phone_number").onChange({ name: "emergency_phone_number", - value: parsePhoneNumber(mobile), + value: parsePhoneNumber(mobile, "IN"), }); }