Skip to content

Commit

Permalink
Merge pull request #46 from vaibhavsTekdi/vs-updatecohortsearchlist
Browse files Browse the repository at this point in the history
Issue #214069 feat: Show the cohort list on the basis of cohort members having role teacher for logged in user
  • Loading branch information
PrasadAthani authored Feb 22, 2024
2 parents 42987b2 + 4f55c62 commit 0808582
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cohort/src/pages/CohortDetails.js
Original file line number Diff line number Diff line change
@@ -290,9 +290,9 @@ const CohortDetails = ({ footerLinks, setAlert, appName }) => {
item.data[0].title === t("Mark My Attendance");

// Modify the title based on the attendance status
let modifiedTitle = item.data[0].title;
if (isMarkMyAttendance) {
modifiedTitle += ` - ${attendanceStatusData.data[0].attendance}`;
let modifiedTitle = item?.data[0]?.title;
if (isMarkMyAttendance && attendanceStatusData?.data[0]?.attendance) {
modifiedTitle += ` - ${attendanceStatusData?.data[0]?.attendance}`;
}

// Assign onPress handler only to "Mark My Attendance" widget

0 comments on commit 0808582

Please sign in to comment.