From 047cfc1a480c06af636f6ddd8f722be4b4e668c0 Mon Sep 17 00:00:00 2001 From: jspark2000 Date: Thu, 21 Mar 2024 11:47:41 +0000 Subject: [PATCH] fix: modify create roster form --- .../app/console/roster/new/_components/CreateRosterForm.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/console/roster/new/_components/CreateRosterForm.tsx b/frontend/src/app/console/roster/new/_components/CreateRosterForm.tsx index caa5b2d..ce92272 100644 --- a/frontend/src/app/console/roster/new/_components/CreateRosterForm.tsx +++ b/frontend/src/app/console/roster/new/_components/CreateRosterForm.tsx @@ -52,7 +52,9 @@ export default function CreateRosterForm() { try { await fetcher.post('/rosters', { ...data, - class: data.class === '' ? '없음' : data.class + class: data.class === '' ? '없음' : data.class, + offPosition: + data.type !== RosterType.Athlete ? data.type : data.offPosition }) router.push('/console/roster?revalidate=true') toast.success('부원을 등록했습니다')