We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bd265d commit 585d779Copy full SHA for 585d779
frontend/src/pages/admin/AdminStudentAttendance.jsx
@@ -81,7 +81,7 @@ const processWeeklyAttendance = (rawData) => {
81
const dateMap = new Map();
82
rawData.forEach(({ date, status }) => {
83
const week = getWeekFromDate(date);
84
- const dayKey = `${week}-${date}`;
+ const dayKey = `${week}|${date}`;
85
if (!dateMap.has(dayKey)) dateMap.set(dayKey, []);
86
dateMap.get(dayKey).push(status);
87
});
@@ -91,7 +91,7 @@ const processWeeklyAttendance = (rawData) => {
91
92
93
dateMap.forEach((statusList, key) => {
94
- const [week, date] = key.split("-");
+ const [week, date] = key.split("|");
95
const trueCount = statusList.filter(Boolean).length;
96
97
let status = "EMPTY";
0 commit comments