diff --git a/src/hooks/query/event/usePostEventApplyMutation.ts b/src/hooks/query/event/usePostEventApplyMutation.ts index 21e4567a..70dc479b 100644 --- a/src/hooks/query/event/usePostEventApplyMutation.ts +++ b/src/hooks/query/event/usePostEventApplyMutation.ts @@ -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}`); },