diff --git a/packages/react-core/src/components/Alert/AlertIcon.tsx b/packages/react-core/src/components/Alert/AlertIcon.tsx index 4562b3aea2c..cccda81ac50 100644 --- a/packages/react-core/src/components/Alert/AlertIcon.tsx +++ b/packages/react-core/src/components/Alert/AlertIcon.tsx @@ -26,9 +26,9 @@ export interface AlertIconProps extends React.HTMLProps { export const AlertIcon = ({ variant, customIcon, className = '', ...props }: AlertIconProps) => { const Icon = variantIcons[variant]; - return ( + return Icon ? (
{customIcon || }
- ); + ) : null; };