diff --git a/.changeset/little-trains-applaud.md b/.changeset/little-trains-applaud.md new file mode 100644 index 0000000000..56af0354e9 --- /dev/null +++ b/.changeset/little-trains-applaud.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/fuselage": patch +--- + +Fixes banner breaking ui when the `title` prop is not a string diff --git a/packages/fuselage/src/components/Banner/Banner.tsx b/packages/fuselage/src/components/Banner/Banner.tsx index 1fa70597dd..e3d139c073 100644 --- a/packages/fuselage/src/components/Banner/Banner.tsx +++ b/packages/fuselage/src/components/Banner/Banner.tsx @@ -96,7 +96,7 @@ const Banner = ({ )}
- {title && ( + {title && typeof title === 'string' && (
{title}
)} {children}