Skip to content

Commit 9dc399d

Browse files
AnastasiiaMPAnastasiia Mishchenko
andauthored
fix: don't render space for title when no title (#1310)
Co-authored-by: Anastasiia Mishchenko <[email protected]>
1 parent 14a511a commit 9dc399d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Toaster/Toaster.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const toast = ({
6060
</div>
6161
<div {...elem('content')}>
6262
<div {...elem('message')}>
63-
<h3 className="OneUI-heading-3">{title}</h3>
63+
{title && <h3 className="OneUI-heading-3">{title}</h3>}
6464
<p className="OneUI-body-text">{description}</p>
6565
</div>
6666
<div {...elem('actions')}>

0 commit comments

Comments
 (0)