Made it so the listing of a corporate account shows the name of the corporate instead of the person
This commit is contained in:
@@ -288,7 +288,7 @@ export default function UserList({user, filter}: {user: User; filter?: (user: Us
|
||||
"underline text-mti-purple-light hover:text-mti-purple-dark transition ease-in-out duration-300 cursor-pointer",
|
||||
)}
|
||||
onClick={() => (PERMISSIONS.updateExpiryDate[row.original.type].includes(user.type) ? setSelectedUser(row.original) : null)}>
|
||||
{getValue()}
|
||||
{row.original.type === "corporate" ? row.original.corporateInformation?.companyInformation?.name || getValue() : getValue()}
|
||||
</div>
|
||||
),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user