Skip to content

Commit

Permalink
add dummy profile url if user does not have linkedin profile pic (#1950)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmohsin7 authored Mar 4, 2025
2 parents c20e152 + 353ccb5 commit 03d94af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion personas-open-source/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ Recent activity on Twitter:\n"${enhancedDesc}" which you can use for your person
if (!profileResponse.ok) return false;
const profileData: LinkedinProfile = await profileResponse.json();
if (!profileData || !profileData?.data?.firstName) return false;
const formattedAvatarUrl = profileData?.data?.profilePicture || '/omi-avatar.svg';
const formattedAvatarUrl = profileData?.data?.profilePicture || 'https://storage.googleapis.com/omi_plugins/dummy_linkedin_image.png';
const fullName = `${profileData?.data?.firstName || ''} ${profileData?.data?.lastName || ''}`.trim();
const headline = profileData?.data?.headline || 'No headline available';
const summary = profileData?.data?.summary || 'No summary available';
Expand Down

0 comments on commit 03d94af

Please sign in to comment.