diff --git a/susconecta/components/forms/patient-registration-form.tsx b/susconecta/components/forms/patient-registration-form.tsx index ceff417..95ac4c6 100644 --- a/susconecta/components/forms/patient-registration-form.tsx +++ b/susconecta/components/forms/patient-registration-form.tsx @@ -395,8 +395,8 @@ export function PatientRegistrationForm({ if (inline && onClose) { onClose() - } else if (onOpenChange) { - onOpenChange(false) + } else { + onOpenChange?.(false) } // Show success message (you might want to use a toast notification) @@ -412,8 +412,8 @@ export function PatientRegistrationForm({ const handleCancel = () => { if (inline && onClose) { onClose() - } else if (onOpenChange) { - onOpenChange(false) + } else { + onOpenChange?.(false) } } @@ -464,10 +464,10 @@ export function PatientRegistrationForm({