Fix lougout-Zeit

This commit is contained in:
PxlLoewe
2025-07-10 23:41:39 -07:00
parent 879c422366
commit 446391679c
6 changed files with 17 additions and 10 deletions

View File

@@ -51,7 +51,9 @@ export const handleConnectDispatch =
data: {
publicUser: getPublicUser(user) as any,
esimatedLogoutTime:
logoffHours && logoffMinutes ? getNextDateWithTime(logoffHours, logoffMinutes) : null,
logoffHours !== undefined && logoffMinutes !== undefined
? getNextDateWithTime(logoffHours, logoffMinutes)
: null,
lastHeartbeat: new Date().toISOString(),
userId: user.id,
zone: selectedZone,