From 7861aa6e0a1bdc7ad28f62f13c62752a5b33995d Mon Sep 17 00:00:00 2001 From: samau3 Date: Mon, 21 Oct 2024 14:42:15 -0700 Subject: [PATCH] Format files --- client/src/pages/patients/register/PatientRegistration.jsx | 4 +++- .../patients/register/inputs/HealthcareChoicesSearch.jsx | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/client/src/pages/patients/register/PatientRegistration.jsx b/client/src/pages/patients/register/PatientRegistration.jsx index c449dad5..d4b9dcfd 100644 --- a/client/src/pages/patients/register/PatientRegistration.jsx +++ b/client/src/pages/patients/register/PatientRegistration.jsx @@ -174,7 +174,9 @@ export default function PatientRegistration() { if (physician) { const fullName = `${physician.firstName}${physician.middleName ? ` ${physician.middleName}` : ''} ${physician.lastName}`; - const hospital = physician.hospitals[0] ? physician.hospitals[0].name : ''; + const hospital = physician.hospitals[0] + ? physician.hospitals[0].name + : ''; const phone = physician.phone ? `${physician.phone} ` : ''; const physicianDetails = `${fullName}${hospital ? ` (${hospital})` : ''}${phone ? ` - ${phone}` : ''}`; setInitialPhysicianData(physicianDetails); diff --git a/client/src/pages/patients/register/inputs/HealthcareChoicesSearch.jsx b/client/src/pages/patients/register/inputs/HealthcareChoicesSearch.jsx index c6253c9d..6ab80bcc 100644 --- a/client/src/pages/patients/register/inputs/HealthcareChoicesSearch.jsx +++ b/client/src/pages/patients/register/inputs/HealthcareChoicesSearch.jsx @@ -71,14 +71,16 @@ export default function HealthcareChoicesSearch({ form, choice, initialData }) { const handleSelectValue = (id, key) => { const name = key.children; - setSearch(name.join("")); + setSearch(name.join('')); form.setFieldValue(`healthcareChoices.${choice}Id`, id); combobox.closeDropdown(); }; const options = (data || []).map((item) => ( - {item.name}{item.hospital ? ` (${item.hospital})` : ''}{item.phone ? ` - ${item.phone}` : ''} + {item.name} + {item.hospital ? ` (${item.hospital})` : ''} + {item.phone ? ` - ${item.phone}` : ''} ));