Skip to content

Commit a9101b0

Browse files
fix: show custom company name when no company (#5063)
1 parent 78e212c commit a9101b0

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

packages/shared/src/features/profile/components/experience/UserExperienceItem.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ export function UserExperienceItem({
3838
grouped,
3939
editUrl,
4040
}: UserExperienceItemProps): ReactElement {
41-
const { company, title, description, startedAt, endedAt, subtitle } =
42-
experience;
41+
const {
42+
company,
43+
customCompanyName,
44+
title,
45+
description,
46+
startedAt,
47+
endedAt,
48+
subtitle,
49+
} = experience;
4350
const { skills, verified } = experience as UserExperienceWork;
4451
const { url } = experience as UserExperienceProject;
4552
const { externalReferenceId } = experience as UserExperienceCertification;
@@ -105,7 +112,7 @@ export function UserExperienceItem({
105112
type={TypographyType.Footnote}
106113
color={TypographyColor.Secondary}
107114
>
108-
{company?.name}
115+
{company?.name || customCompanyName}
109116
{!!verified && (
110117
<span className="ml-1 text-text-quaternary">Verified</span>
111118
)}

0 commit comments

Comments
 (0)