From d18046c0ebd1bd8d10596e0928fe4b3ad6dd471d Mon Sep 17 00:00:00 2001 From: rithviknishad Date: Tue, 8 Oct 2024 13:15:42 +0530 Subject: [PATCH] remove unnecessary length check --- src/Components/Patient/ManagePatients.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Patient/ManagePatients.tsx b/src/Components/Patient/ManagePatients.tsx index f2e483f5f0e..af12d80c5d8 100644 --- a/src/Components/Patient/ManagePatients.tsx +++ b/src/Components/Patient/ManagePatients.tsx @@ -111,7 +111,7 @@ export const PatientManager = () => { const setPhoneNumber = (value: string) => { _setPhoneNumber(value); const error = PhoneNumberValidator()(value); - if (value.length >= 13 && !error) { + if (!error) { updateQuery({ phone_number: value }); } if ((value === "+91" || value === "") && qParams.phone_number) { @@ -122,7 +122,7 @@ export const PatientManager = () => { const setEmergencyPhoneNumber = (value: string) => { _setEmergencyPhoneNumber(value); const error = PhoneNumberValidator()(value); - if (value.length >= 13 && !error) { + if (!error) { updateQuery({ emergency_phone_number: value }); } if ((value === "+91" || value === "") && qParams.emergency_phone_number) {