Bug fix: avatar of account owner not displayed (#690)
* Begin - fix account owner not displayed * Finish - profile pic of account owner not displayed
This commit is contained in:
@ -7,7 +7,7 @@ import { Company, User } from '~/generated/graphql';
|
||||
import { CompanyAccountOwnerPicker } from './CompanyAccountOwnerPicker';
|
||||
|
||||
export type CompanyAccountOnwer = Pick<Company, 'id'> & {
|
||||
accountOwner?: Pick<User, 'id' | 'displayName'> | null;
|
||||
accountOwner?: Pick<User, 'id' | 'displayName' | 'avatarUrl'> | null;
|
||||
};
|
||||
|
||||
export type OwnProps = {
|
||||
@ -40,6 +40,7 @@ export function CompanyAccountOwnerCell({ company }: OwnProps) {
|
||||
<PersonChip
|
||||
id={company.accountOwner.id}
|
||||
name={company.accountOwner?.displayName ?? ''}
|
||||
picture={company.accountOwner?.avatarUrl ?? ''}
|
||||
/>
|
||||
) : (
|
||||
<></>
|
||||
|
||||
@ -42,6 +42,7 @@ export function CompanyAccountOwnerPicker({
|
||||
id: user.id,
|
||||
name: user.displayName,
|
||||
avatarType: 'rounded',
|
||||
avatarUrl: user.avatarUrl ?? '',
|
||||
}),
|
||||
orderByField: 'firstName',
|
||||
searchOnFields: ['firstName', 'lastName'],
|
||||
|
||||
Reference in New Issue
Block a user