diff --git a/apps/web-client/src/components/board/BoardJobWriteSection.tsx b/apps/web-client/src/components/board/BoardJobWriteSection.tsx index 1f22645..5aa2b7f 100644 --- a/apps/web-client/src/components/board/BoardJobWriteSection.tsx +++ b/apps/web-client/src/components/board/BoardJobWriteSection.tsx @@ -274,7 +274,7 @@ export default function BoardJobWriteSection({ postId }: { postId: number }) { - date && form.setFieldValue('deadline', date)} /> + date && form.setFieldValue('deadline', Array.isArray(date) ? date[0] : date)} />
diff --git a/apps/web-client/src/lib/utils/boardUtil.ts b/apps/web-client/src/lib/utils/boardUtil.ts index 281f5f9..1bd3b73 100644 --- a/apps/web-client/src/lib/utils/boardUtil.ts +++ b/apps/web-client/src/lib/utils/boardUtil.ts @@ -4,11 +4,11 @@ export type BoardType = 'NOTICE' | 'FREE' | 'JOB' | 'PROJECT' | 'CS'; export function getBoardTitleByBoardType(boardType: BoardType) { return match(boardType) - .with('NOTICE', () => '공지 게시판') - .with('FREE', () => '자유 게시판') - .with('JOB', () => '취업 게시판') - .with('PROJECT', () => '프로젝트 게시판') - .with('CS', () => 'CS 게시판') + .with('NOTICE', () => 'notice') + .with('FREE', () => 'free') + .with('JOB', () => 'job') + .with('PROJECT', () => 'project') + .with('CS', () => 'cs') .exhaustive(); }