Skip to content

Commit

Permalink
fix issue with array destructuring on falsy value
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-hackin committed Feb 10, 2023
1 parent a37309c commit 41c084d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Articles/ContactInformation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const ContactInformation: React.FC<ContactInformationProps> = ({
},
html: personalInformation.attributes.location,
},
...privateInformation,
...(privateInformation || []),
];
return (
<article>
Expand Down

0 comments on commit 41c084d

Please sign in to comment.