fix(admin): update session data check to use sessions property
This commit is contained in:
@@ -44,7 +44,7 @@ const ProfilePage = ({ user: initialUser }) => {
|
||||
fetch('/zen/api/users/profile/sessions', { credentials: 'include' })
|
||||
.then(r => r.json())
|
||||
.then(data => {
|
||||
if (data.success) {
|
||||
if (data.sessions) {
|
||||
setSessions(data.sessions);
|
||||
setCurrentSessionId(data.currentSessionId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user