diff --git a/src/App.tsx b/src/App.tsx index ed41e07447..a4a7f553e1 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -69,7 +69,7 @@ export const App = () => { > window.location.reload()} > {routes(() => {}).map((route, i) => ( diff --git a/src/sessions/SessionsSection.tsx b/src/sessions/SessionsSection.tsx index b66ba25e88..749dabc54e 100644 --- a/src/sessions/SessionsSection.tsx +++ b/src/sessions/SessionsSection.tsx @@ -33,11 +33,12 @@ export const SessionsSection = () => { ) ).flat(); + const userIds = Array.from( + new Set(clientSessions.map((session) => session.userId)) + ); const userSessions = ( await Promise.all( - clientSessions.map((session) => - adminClient.users.listSessions({ id: session.userId! }) - ) + userIds.map((userId) => adminClient.users.listSessions({ id: userId! })) ) ).flat();