Skip to content

Commit

Permalink
fix: async await 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
SongInjae committed Dec 1, 2023
1 parent 8da8a9f commit 276f91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/query/event/usePostEventApplyMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const usePostEventApplyMutation = ({ eventId }: usePostEventApplyMutation) => {

const { mutate: applyEvent, isLoading: isApplyLoading } = useMutation({
mutationFn: postApplyEvent,
onSuccess: async () => {
await queryClient.invalidateQueries([EVENT_DETAIL_QUERY_KEY.EVENT_DETAIL]);
onSuccess: () => {
queryClient.invalidateQueries([EVENT_DETAIL_QUERY_KEY.EVENT_DETAIL]);
createToast({ message: '성공적으로 신청되었습니다.', toastType: 'success' });
navigate(`/event/${eventId}`);
},
Expand Down

0 comments on commit 276f91f

Please sign in to comment.