ENCOA-6: Updated the Linked Corporate column in the Group List

This commit is contained in:
Tiago Ribeiro
2024-04-11 11:29:08 +01:00
parent 4ecb21e0ae
commit 13496387c4
2 changed files with 12 additions and 18 deletions

View File

@@ -218,9 +218,7 @@ export default function GroupList({user}: {user: User}) {
header: "Admin",
cell: (info) => (
<div className="tooltip" data-tip={capitalize(users.find((x) => x.id === info.getValue())?.type)}>
{users.find((x) => x.id === info.getValue())?.type === "corporate"
? (users.find((x) => x.id === info.getValue()) as CorporateUser)?.corporateInformation?.companyInformation?.name
: users.find((x) => x.id === info.getValue())?.name}
{users.find((x) => x.id === info.getValue())?.name}
</div>
),
}),