From a290ba7a4d40837e82378a152e3879215ddf7b2d Mon Sep 17 00:00:00 2001 From: Giulia Ghisini Date: Thu, 11 Apr 2024 12:43:05 +0200 Subject: [PATCH] fix: fixed calculation of prefix of fontawesome icon if prefix is in icon string --- src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx b/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx index 203850db3..39c997dfd 100644 --- a/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx +++ b/src/components/ItaliaTheme/Icons/FontAwesomeIcon.jsx @@ -36,8 +36,10 @@ const FontAwesomeIcon = (props) => { prefixKey === 'fab' ? 'brands' : prefixKey === 'far' - ? 'regular' - : 'solid', + ? 'regular' + : prefixKey != null + ? prefixKey + : 'solid', iconName, ]; };