From 28b8701859e9fab0b48b619ecb5f511eedd7f0f6 Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:23:24 +0530 Subject: [PATCH] fix the lint error --- src/Components/Facility/ConsultationForm.tsx | 4 ++-- vite.config.mts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Components/Facility/ConsultationForm.tsx b/src/Components/Facility/ConsultationForm.tsx index 10af5bec23a..355d4ce745e 100644 --- a/src/Components/Facility/ConsultationForm.tsx +++ b/src/Components/Facility/ConsultationForm.tsx @@ -387,8 +387,8 @@ export const ConsultationForm = ({ facilityId, patientId, id }: Props) => { admitted: data.admitted ? String(data.admitted) : "false", admitted_to: data.admitted_to ? data.admitted_to : "", category: data.category - ? PATIENT_CATEGORIES.find((i) => i.text === data.category)?.id ?? - "" + ? (PATIENT_CATEGORIES.find((i) => i.text === data.category)?.id ?? + "") : "", patient_no: data.patient_no ?? "", OPconsultation: data.consultation_notes, diff --git a/vite.config.mts b/vite.config.mts index 5a8dcbae044..1b80321b004 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -83,7 +83,7 @@ export default { port: 4000, proxy: { "/api": { - target: process.env.CARE_API ?? "https://careapi.ohc.network", + target: process.env.CARE_API ?? "http://localhost:9000/", changeOrigin: true, }, }, @@ -100,7 +100,7 @@ export default { port: 4000, proxy: { "/api": { - target: process.env.CARE_API ?? "https://careapi.ohc.network", + target: process.env.CARE_API ?? "http://localhost:9000/", changeOrigin: true, }, },