Skip to content

Commit

Permalink
fix: mark first post step completed after submit pending post (#3799)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilasw authored Nov 14, 2024
1 parent 4286cdf commit 33935a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/shared/src/hooks/squads/usePostToSquad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ export const usePostToSquad = ({
isSuccess: didCreatePostModeration,
isPending: isPostModerationLoading,
} = useSourcePostModeration({
onSuccess: () => {
completeAction(ActionType.SquadFirstPost);
},
onError: () => {
displayToast(DEFAULT_ERROR);
},
Expand Down

0 comments on commit 33935a8

Please sign in to comment.