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 });