Skip to content

Commit 73c8475

Browse files
committed
fix: handle optional logo in Company type
1 parent 2406dc0 commit 73c8475

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

components/UsersLogos/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ export interface ISortedLogos {
7575

7676
const SortedLogos = ({ users }: ISortedLogos) => (
7777
<UsersWrapper>
78-
{users.map(({ key, name, logo: Logo }) => (
79-
<CompanyLogo key={key} title={name}>
80-
<Logo />
81-
</CompanyLogo>
82-
))}
78+
{users.map(({ key, name, logo: Logo }) =>
79+
Logo ? (
80+
<CompanyLogo key={key} title={name}>
81+
<Logo />
82+
</CompanyLogo>
83+
) : null
84+
)}
8385
</UsersWrapper>
8486
);
8587

0 commit comments

Comments
 (0)