From 69808a8ed774f96035cdbee76fd63d4fb7f3c085 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 8 Oct 2024 11:01:33 +0000 Subject: [PATCH] fix: cell props per header --- .../teacherDashboard/classes/class/StudentTable.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/teacherDashboard/classes/class/StudentTable.tsx b/src/pages/teacherDashboard/classes/class/StudentTable.tsx index ad7c74f..4f3c446 100644 --- a/src/pages/teacherDashboard/classes/class/StudentTable.tsx +++ b/src/pages/teacherDashboard/classes/class/StudentTable.tsx @@ -76,11 +76,11 @@ const StudentTable: FC = ({ classId }) => { "Action", ]} > - {users ? ( + {users.length ? ( users.map(user => ( - {user.first_name} - + {user.first_name} + { setStudentUsers( @@ -98,7 +98,7 @@ const StudentTable: FC = ({ classId }) => { }} /> - + = ({ classId }) => { )} - + {LinkButton({ children: "Release", to: generatePath(