Skip to content

Commit

Permalink
fix: async 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
imb96 committed Nov 23, 2023
1 parent 3e25a0f commit c690f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/CreateCrewPage/useCreateCrewPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const useCreateCrewPage = () => {
onSuccess: ({ crewId }) => {
navigate(PATH_NAME.GET_CREWS_PATH(String(crewId)));
},
onError: async (error) => {
onError: (error) => {
if (error instanceof AxiosError) {
if (error.response?.data.code === 'CRE-012') {
return toast.error('최대 크루 생성 횟수 3회를 초과했습니다.');
Expand Down

0 comments on commit c690f73

Please sign in to comment.