diff --git a/src/features/teams/components/team-form/index.tsx b/src/features/teams/components/team-form/index.tsx index 7ab2a48..ed59230 100644 --- a/src/features/teams/components/team-form/index.tsx +++ b/src/features/teams/components/team-form/index.tsx @@ -106,6 +106,7 @@ const TeamForm = ({ mutation(teamData, { onSuccess: async (team: any) => { + close(); if (logo && team) { try { let processedLogo = logo; @@ -174,7 +175,6 @@ const TeamForm = ({ if (team && team.id) { onSubmit?.(team.id) } - close(); }, onError: (error: any) => { toast.error(`${errorMessage}: ${error.message}`);