Skip to content

Commit

Permalink
fix: allow professional theme to have case insensitive network names
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdavis committed Nov 12, 2024
1 parent e4aa4ba commit 53a2023
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/jsonresume-theme-professional/src/ui/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,15 @@ const Info = styled.div`
const HeroComponent = ({ basics }) => {
const { name, url, location, profiles, phone, email } = basics;

const linkedin = profiles.find(({ network }) => network === 'linkedin');
const github = profiles.find(({ network }) => network === 'github');
const twitter = profiles.find(({ network }) => network === 'twitter');
const linkedin = profiles.find(
({ network }) => network.toLowerCase() === 'linkedin'
);
const github = profiles.find(
({ network }) => network.toLowerCase() === 'github'
);
const twitter = profiles.find(
({ network }) => network.toLowerCase() === 'twitter'
);

return (
<Section>
Expand Down

0 comments on commit 53a2023

Please sign in to comment.