We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab3b3ec commit 8133f6bCopy full SHA for 8133f6b
shared/teams/delete-team/container.tsx
@@ -22,7 +22,9 @@ const DeleteTeamContainer = (op: OwnProps) => {
22
const _onBack = navigateUp
23
const onBack = deleteWaiting ? () => {} : _onBack
24
const deleteTeam = C.useTeamsState(s => s.dispatch.deleteTeam)
25
- const _onDelete = React.useCallback(() => () => deleteTeam(teamID), [deleteTeam, teamID])
+ const _onDelete = React.useCallback(() => {
26
+ deleteTeam(teamID)
27
+ }, [deleteTeam, teamID])
28
const onDelete = Container.useSafeSubmit(_onDelete, !deleteWaiting)
29
30
return (
0 commit comments