Skip to content

Commit

Permalink
fix(alert): apply isEmpty check on title
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong committed Jan 10, 2025
1 parent 752682b commit a17f27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/alert/src/alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const Alert = forwardRef<"div", AlertProps>((props, ref) => {
{customIcon || <IconComponent {...getAlertIconProps()} />}
</div>
<div {...getMainWrapperProps()}>
{title && <div {...getTitleProps()}>{title}</div>}
{!isEmpty(title) && <div {...getTitleProps()}>{title}</div>}
{!isEmpty(description) && <div {...getDescriptionProps()}>{description}</div>}
{children}
</div>
Expand Down

0 comments on commit a17f27b

Please sign in to comment.