Skip to content

Commit

Permalink
Added parentName
Browse files Browse the repository at this point in the history
  • Loading branch information
alten-dturus committed Nov 2, 2023
1 parent 5b94f91 commit 39eec95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const getPartyList = (
productRole: (party.userProductRoles as Array<UserProductRole>)
.map((role) => t(`userProductRole.${role}`))
.join(', '),
parentName: party.parent,
})

if (parties && parties.length > 0) {
Expand All @@ -38,6 +39,7 @@ const getPartyList = (
id: jwt.selfcareId,
description: jwt.organization.name,
userProductRoles: jwt.organization.roles.map((r) => r.role),
parent: jwt.routeParent?.description,
}),
]
}
Expand Down

0 comments on commit 39eec95

Please sign in to comment.