rename current device property

This commit is contained in:
Philipinho
2026-03-26 19:40:25 +00:00
parent 15e5b05c7f
commit 237fd79971
3 changed files with 8 additions and 8 deletions
@@ -71,12 +71,12 @@ export class SessionService {
geoLocation: s.geoLocation,
lastActiveAt: s.lastActiveAt,
createdAt: s.createdAt,
isCurrent: s.id === currentSessionId,
isCurrentDevice: s.id === currentSessionId,
}));
return mapped.sort((a, b) => {
if (a.isCurrent) return -1;
if (b.isCurrent) return 1;
if (a.isCurrentDevice) return -1;
if (b.isCurrentDevice) return 1;
return 0;
});
}