From 34712a6cb5728d9daff3cdc0c8158a6c246e025f Mon Sep 17 00:00:00 2001 From: Rithvik Nishad Date: Fri, 26 May 2023 15:03:25 +0530 Subject: [PATCH] fix consultation redirect (#5535) --- src/Components/Facility/ConsultationForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Facility/ConsultationForm.tsx b/src/Components/Facility/ConsultationForm.tsx index 8585340b974..06f0ae2d164 100644 --- a/src/Components/Facility/ConsultationForm.tsx +++ b/src/Components/Facility/ConsultationForm.tsx @@ -655,7 +655,7 @@ export const ConsultationForm = (props: any) => { if (data.suggestion === "R") { navigate(`/facility/${facilityId}/patient/${patientId}/shift/new`); return; - } else if (!id) { + } else if (!id && data.suggestion === "A") { navigate( `/facility/${facilityId}/patient/${patientId}/consultation/${res.data.id}/prescriptions` );