From d14ca0c88924d84a62e7517d6c3104499ece8438 Mon Sep 17 00:00:00 2001 From: Kamishetty Rishith <119791436+Rishith25@users.noreply.github.com> Date: Fri, 18 Oct 2024 16:00:17 +0530 Subject: [PATCH] Corrected redirection of cancel button (#8823) --- src/Components/Patient/PatientRegister.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Components/Patient/PatientRegister.tsx b/src/Components/Patient/PatientRegister.tsx index 9fd923e58f2..21c06043369 100644 --- a/src/Components/Patient/PatientRegister.tsx +++ b/src/Components/Patient/PatientRegister.tsx @@ -922,7 +922,7 @@ export const PatientRegister = (props: PatientRegisterProps) => { validate={validateForm} onSubmit={handleSubmit} submitLabel={buttonText} - onCancel={() => navigate("/facility")} + onCancel={() => goBack()} className="bg-transparent px-1 py-2 md:px-2" onDraftRestore={(newState) => { dispatch({ type: "set_state", state: newState });