Fixed overtime checkin not showing

This commit is contained in:
2026-06-04 07:43:23 +08:00
parent 7f38086237
commit f39bc2cc06
@@ -564,7 +564,7 @@ class _CheckInTabState extends ConsumerState<_CheckInTab> {
s.userId == profile.id || s.relieverIds.contains(profile.id); s.userId == profile.id || s.relieverIds.contains(profile.id);
final overlapsToday = final overlapsToday =
s.startTime.isBefore(tomorrowStart) && s.endTime.isAfter(todayStart); s.startTime.isBefore(tomorrowStart) && s.endTime.isAfter(todayStart);
return isAssigned && overlapsToday; return isAssigned && overlapsToday && s.shiftType != 'overtime';
}).toList(); }).toList();
// Find active attendance log (checked in but not out) // Find active attendance log (checked in but not out)