Changed some functionallity in attendance

This commit is contained in:
ashutosh.nehete 2025-06-12 11:05:10 +05:30
parent 1c0be858e9
commit 73e5254fbb

View File

@ -129,14 +129,13 @@ const AttendanceLog = ({ handleModalData, projectId, showOnlyCheckout }) => {
(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
);