From 29bdbbc03a974298d46bfba22f9ddcb1afbeb884 Mon Sep 17 00:00:00 2001 From: Remko Date: Thu, 18 Apr 2024 11:49:05 +0200 Subject: [PATCH] cleanup --- .../organizationsForm/EditOrganizationTemplate.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} />