Made it so the listing of a corporate account shows the name of the corporate instead of the person

This commit is contained in:
Tiago Ribeiro
2023-11-27 13:07:33 +00:00
parent 81f5af5629
commit 3878d4761e
3 changed files with 11 additions and 3 deletions

View File

@@ -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>
),
}),