Skip to content

Commit

Permalink
fix: brand logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl committed Feb 2, 2025
1 parent 118d3d3 commit d9c63d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/react-components/button-social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export const ButtonSocial = ({
...props
}: ButtonSocialProps): JSX.Element => {
const brandClass =
brand !== "generic" ? `fa-brands fa-${brand}` : "fa-solid fa-layer-group"
brand !== "generic"
? `fa-brands fa-${brand.split("-")[0]}`
: "fa-solid fa-layer-group"
return (
<div className={className}>
<button
Expand Down

0 comments on commit d9c63d3

Please sign in to comment.