Skip to content

Commit

Permalink
add call to onSuccess in useLeaveTeam (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
acrantel authored Oct 11, 2024
1 parent 4a29016 commit d5dccba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend2/src/api/team/useTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ export const useLeaveTeam = (
await queryClient.invalidateQueries({
queryKey: competeQueryKeys.scrimBase.key({ episodeId }),
});
if (onSuccess !== undefined) {
onSuccess();
}
},
});

Expand Down

0 comments on commit d5dccba

Please sign in to comment.