diff --git a/apps/admin/app/students/_components/OutstandingModal.tsx b/apps/admin/app/students/_components/OutstandingModal.tsx index 1692e819..d6907933 100644 --- a/apps/admin/app/students/_components/OutstandingModal.tsx +++ b/apps/admin/app/students/_components/OutstandingModal.tsx @@ -18,8 +18,8 @@ import { const OutstandingModal = () => { const study = useAtomValue(studyAtom); - const selectedStudents = useAtomValue(selectedStudentsAtom); - const STUDENTS_NUM = selectedStudents.length; + const { firstStudentName, students } = useAtomValue(selectedStudentsAtom); + const STUDENTS_NUM = students.length; const [outstandingStudents, setOutstandingStudents] = useAtom( outstandingStudentsAtom @@ -39,7 +39,7 @@ const OutstandingModal = () => { : studyAchievementApi.deleteStudyAchievement; const result = await fetch(study.studyId, { - studentIds: selectedStudents, + studentIds: students, achievementType: achievement, }); @@ -79,11 +79,8 @@ const OutstandingModal = () => { )} - { - // TODO: 가장 앞 사람 정보 요청 - /* 이현영 님 외{" "} */ - } - {STUDENTS_NUM}명 + {firstStudentName} 님 외{" "} + {STUDENTS_NUM - 1}명 {enabled ? (