Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Apr 18, 2024
1 parent f248242 commit 29bdbbc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const EditOrganizationTemplate: React.FC<CreateOrganizationTemplateProps>
);
};

const handleDeleteDatabase = () => {
const handleDeleteOrganization = () => {
const confirmDeletion = confirm("Are you sure you want to delete this organization?");

confirmDeletion && deleteOrganization.mutate({ id: organizationId });
Expand All @@ -70,7 +70,7 @@ export const EditOrganizationTemplate: React.FC<CreateOrganizationTemplateProps>
{...{ formId }}
disabled={isLoading.organizationForm}
handleToggleDashboard={{ handleToggle: toggleFromDashboard, isActive: !!dashboardCard }}
handleDelete={handleDeleteDatabase}
handleDelete={handleDeleteOrganization}

/>

Expand Down

0 comments on commit 29bdbbc

Please sign in to comment.