diff --git a/packages/cohort/src/pages/CohortMemberList.js b/packages/cohort/src/pages/CohortMemberList.js index db82decc..e68a3de4 100644 --- a/packages/cohort/src/pages/CohortMemberList.js +++ b/packages/cohort/src/pages/CohortMemberList.js @@ -347,6 +347,16 @@ export default function CohortMemberList({ footerLinks, appName }) { let attendanceRecord = attendanceStatusData?.find( (record) => record?.userId === item?.userId ); + let changedRecord = selectedAttendance?.records?.find( + (record) => record?.userId === item?.userId + ); + let memberAttendance = '' + if (changedRecord && changedRecord.userId) { + memberAttendance = changedRecord.attendance; + } else { + memberAttendance = attendanceRecord.attendance; + } + return ( ) : null} +