diff --git a/packages/terra-clinical-header/src/Header.jsx b/packages/terra-clinical-header/src/Header.jsx index 2cf3f938e..0fa598fa1 100644 --- a/packages/terra-clinical-header/src/Header.jsx +++ b/packages/terra-clinical-header/src/Header.jsx @@ -101,15 +101,16 @@ const Header = ({ } let titleElement; - if (title || text) { - const HeaderElement = (level) ? `h${level}` : 'h1'; + const titleContent = title || text; + if (titleContent) { + const HeaderElement = level ? `h${level}` : 'h1'; titleElement = (