diff --git a/frontend/src/components/group/GroupDeleteButton.tsx b/frontend/src/components/group/GroupDeleteButton.tsx index 8e2aea4..8958454 100644 --- a/frontend/src/components/group/GroupDeleteButton.tsx +++ b/frontend/src/components/group/GroupDeleteButton.tsx @@ -15,14 +15,6 @@ export interface GroupDeleteButtonProps { export function GroupDeleteButton({resource}: GroupDeleteButtonProps): JSX.Element | null { const authorization = useAuthorizationContext() - const doDelete = - React.useCallback( - async () => { - await resource.destroy() - }, - [resource], - ) - if(!authorization) { return null } @@ -34,7 +26,7 @@ export function GroupDeleteButton({resource}: GroupDeleteButtonProps): JSX.Eleme } return ( - + resource.destroy()}>  Delete )