ENCOA-6: Updated the Linked Corporate column in the Group List
This commit is contained in:
@@ -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>
|
||||
),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user