diff --git a/frontend/src/pages/StudentReportPage/StudentReportPage.jsx b/frontend/src/pages/StudentReportPage/StudentReportPage.jsx index c9bfe2b..0531158 100644 --- a/frontend/src/pages/StudentReportPage/StudentReportPage.jsx +++ b/frontend/src/pages/StudentReportPage/StudentReportPage.jsx @@ -9,11 +9,10 @@ export default function StudentReportPage() { const { lectureId } = useParams(); const { data } = useStudentReports(lectureId); const reports = data?.data; - console.log(reports); const totalCounts = reports.reduce?.( (acc, report) => { - if (acc.allCount > 0) { + if (report.allCount > 0) { acc.correctCount += report.correctCount; acc.allCount += report.allCount; } @@ -27,24 +26,26 @@ export default function StudentReportPage() { title="퀴즈 성적" canCreate={false} > -