Skip to content

Commit 1a973b7

Browse files
authored
fix: brand logic in social sign in icon (#348)
1 parent 9379fa9 commit 1a973b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/react-components/button-social.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export const ButtonSocial = ({
3333
...props
3434
}: ButtonSocialProps): JSX.Element => {
3535
const brandClass =
36-
brand !== "generic" ? `fa-brands fa-${brand}` : "fa-solid fa-layer-group"
36+
brand !== "generic"
37+
? `fa-brands fa-${brand.split("-")[0]}`
38+
: "fa-solid fa-layer-group"
3739
return (
3840
<div className={className}>
3941
<button

0 commit comments

Comments
 (0)