diff --git a/packages/react/src/components/Icon/Icon.js b/packages/react/src/components/Icon/Icon.js index ba8038eda..1e56484e9 100644 --- a/packages/react/src/components/Icon/Icon.js +++ b/packages/react/src/components/Icon/Icon.js @@ -11,6 +11,9 @@ const Icon = ({ size = 24, name, className = '', style = {}, ...props }) => { ); const IconComponent = useMemo(() => svgIcons[name], [name]); + if (!name) { + return null; + } if (!IconComponent) { console.log(`No icon found for ${name}`); return null;