diff --git a/app/frontend/src/components/MogacoPost/index.tsx b/app/frontend/src/components/MogacoPost/index.tsx index d60d9e67d..72cb28b1d 100644 --- a/app/frontend/src/components/MogacoPost/index.tsx +++ b/app/frontend/src/components/MogacoPost/index.tsx @@ -46,7 +46,7 @@ export function MogacoPostPage() { status: '모집 중', }); - if (res.status === 200) { + if (res.status === 201) { // TODO: 글 id 받아서 상세 페이지로 이동 필요 navigate('/mogaco'); } diff --git a/app/frontend/src/mocks/mogaco.ts b/app/frontend/src/mocks/mogaco.ts index 1dc28025c..8f43e91de 100644 --- a/app/frontend/src/mocks/mogaco.ts +++ b/app/frontend/src/mocks/mogaco.ts @@ -67,7 +67,7 @@ export const mogacoAPIHandlers = [ http.get('/mogaco/:id/participants', ({ params: { id } }) => HttpResponse.json(participantsList[Number(id) - 1]), ), - http.post('/mogaco', () => HttpResponse.json(null, { status: 200 })), + http.post('/mogaco', () => HttpResponse.json(null, { status: 201 })), http.post('/mogaco/:id/join', ({ params: { id } }) => { participantsList[Number(id) - 1] = [ ...participantsList[Number(id) - 1],