diff --git a/pwa/src/templates/templateParts/organizationsForm/EditOrganizationTemplate.tsx b/pwa/src/templates/templateParts/organizationsForm/EditOrganizationTemplate.tsx index ac5d6f54..d50db683 100644 --- a/pwa/src/templates/templateParts/organizationsForm/EditOrganizationTemplate.tsx +++ b/pwa/src/templates/templateParts/organizationsForm/EditOrganizationTemplate.tsx @@ -55,7 +55,7 @@ export const EditOrganizationTemplate: React.FC ); }; - const handleDeleteDatabase = () => { + const handleDeleteOrganization = () => { const confirmDeletion = confirm("Are you sure you want to delete this organization?"); confirmDeletion && deleteOrganization.mutate({ id: organizationId }); @@ -70,7 +70,7 @@ export const EditOrganizationTemplate: React.FC {...{ formId }} disabled={isLoading.organizationForm} handleToggleDashboard={{ handleToggle: toggleFromDashboard, isActive: !!dashboardCard }} - handleDelete={handleDeleteDatabase} + handleDelete={handleDeleteOrganization} />