fix(admin): update session data check to use sessions property

This commit is contained in:
2026-04-24 17:01:50 -04:00
parent 6e794703ff
commit d0e407b67d
@@ -44,7 +44,7 @@ const ProfilePage = ({ user: initialUser }) => {
fetch('/zen/api/users/profile/sessions', { credentials: 'include' }) fetch('/zen/api/users/profile/sessions', { credentials: 'include' })
.then(r => r.json()) .then(r => r.json())
.then(data => { .then(data => {
if (data.success) { if (data.sessions) {
setSessions(data.sessions); setSessions(data.sessions);
setCurrentSessionId(data.currentSessionId); setCurrentSessionId(data.currentSessionId);
} }