Skip to content

Commit

Permalink
Corrected redirection of cancel button (ohcnetwork#8823)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishith25 authored Oct 18, 2024
1 parent 8d4640b commit d14ca0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Patient/PatientRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit d14ca0c

Please sign in to comment.