Skip to content

Commit

Permalink
fix: brand logic in social sign in icon (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
hperl authored Feb 3, 2025
1 parent 9379fa9 commit 1a973b7
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 @@ -33,7 +33,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 1a973b7

Please sign in to comment.