File tree Expand file tree Collapse file tree
services/apps/members_enrichment_worker/src/sources/crustdata Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,14 +338,17 @@ export default class EnrichmentServiceCrustdata extends LoggerBase implements IE
338338
339339 const linkedinUrl = data . social_handles ?. professional_network_identifier ?. profile_url
340340 if ( linkedinUrl ) {
341- normalized = normalizeSocialIdentity (
342- {
343- handle : linkedinUrl . split ( '/' ) . filter ( Boolean ) . pop ( ) ,
344- platform : PlatformType . LINKEDIN ,
345- } ,
346- MemberIdentityType . USERNAME ,
347- normalized ,
348- )
341+ const handle = linkedinUrl . split ( '/' ) . filter ( Boolean ) . pop ( )
342+ if ( handle ) {
343+ normalized = normalizeSocialIdentity (
344+ {
345+ handle,
346+ platform : PlatformType . LINKEDIN ,
347+ } ,
348+ MemberIdentityType . USERNAME ,
349+ normalized ,
350+ )
351+ }
349352 }
350353
351354 const githubUrl = data . social_handles ?. dev_platform_identifier ?. profile_url
You can’t perform that action at this time.
0 commit comments