diff --git a/ui/app/(prowler)/profile/page.tsx b/ui/app/(prowler)/profile/page.tsx index 77cf9d50fc..c992734283 100644 --- a/ui/app/(prowler)/profile/page.tsx +++ b/ui/app/(prowler)/profile/page.tsx @@ -77,11 +77,7 @@ const SSRDataUser = async ({ {}, ); - const firstUserMembership = membershipsIncluded.find( - (m) => m.relationships?.user?.data?.id === userData.id, - ); - - const userTenantId = firstUserMembership?.relationships?.tenant?.data?.id; + const userTenantId = session?.tenantId; const userRoleIds = userData.relationships?.roles?.data?.map((r) => r.id) || [];