Changed some functionallity in attendance

This commit is contained in:
ashutosh.nehete 2025-06-12 11:05:10 +05:30
parent 90a77d357f
commit a0e4b1c5ed

View File

@ -154,14 +154,13 @@ const AttendanceLog = ({
(msg) => {
const { startDate, endDate } = dateRange;
const checkIn = msg.response.checkInTime.substring(0, 10);
if (
projectId === msg.projectId &&
startDate <= checkIn &&
checkIn <= endDate
) {
const updatedAttendance = data.map((item) =>
item.employeeId === msg.response.employeeId
item.id === msg.response.id
? { ...item, ...msg.response }
: item
);