From 97edd8f572816311c21af9882ed6b3016f222215 Mon Sep 17 00:00:00 2001 From: samnotfound404 Date: Wed, 10 Jul 2024 19:05:29 +0530 Subject: [PATCH] debug --- .../NewTableComponent/StudentModal.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/components/NewTableComponent/StudentModal.tsx b/src/components/NewTableComponent/StudentModal.tsx index ac01a81d..d7a927e8 100644 --- a/src/components/NewTableComponent/StudentModal.tsx +++ b/src/components/NewTableComponent/StudentModal.tsx @@ -253,7 +253,7 @@ export default function StudentModal({ open, setOpen, id }) { Name - {studentData.user ? studentData.user.Name : 'N/A'} + {studentData.user ? studentData.user.name : 'N/A'} @@ -280,24 +280,24 @@ export default function StudentModal({ open, setOpen, id }) { Branch - {studentData.program ? studentData.user.branch : 'NA'} + {studentData.program ? studentData.program.branch : 'NA'} Course - {studentData.program ? studentData.user.course : 'NA'} + {studentData.program ? studentData.program.course : 'NA'} Year - {studentData.program ? studentData.user.year : 'NA'} + {studentData.program ? studentData.program.year : 'NA'} Department - {studentData.program ? studentData.user.department : 'NA'} + {studentData.program ? studentData.program.department : 'NA'} @@ -331,7 +331,7 @@ export default function StudentModal({ open, setOpen, id }) { {resume.verified.toString()} - )) : 'NAA'} + )) : 'NA'} @@ -342,7 +342,6 @@ export default function StudentModal({ open, setOpen, id }) { - ID Penalty Reason @@ -350,11 +349,10 @@ export default function StudentModal({ open, setOpen, id }) { {studentData.penalties ? studentData.penalties.map((penalty) => ( - {penalty.id} {penalty.penalty} {penalty.reason} - )) : 'NAA'} + )) : 'NA'}