Skip to content

Commit

Permalink
fix: fixed calculation of prefix of fontawesome icon if prefix is in …
Browse files Browse the repository at this point in the history
…icon string
  • Loading branch information
giuliaghisini committed Apr 11, 2024
1 parent 0c5ed55 commit a290ba7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ const FontAwesomeIcon = (props) => {
prefixKey === 'fab'
? 'brands'
: prefixKey === 'far'
? 'regular'
: 'solid',
? 'regular'
: prefixKey != null
? prefixKey
: 'solid',
iconName,
];
};
Expand Down

0 comments on commit a290ba7

Please sign in to comment.