diff --git a/src/components/AdaptiveTabs/AdaptiveTabs.tsx b/src/components/AdaptiveTabs/AdaptiveTabs.tsx index 50cccc51..67a95b39 100644 --- a/src/components/AdaptiveTabs/AdaptiveTabs.tsx +++ b/src/components/AdaptiveTabs/AdaptiveTabs.tsx @@ -66,7 +66,7 @@ export interface TabProps { class Tab extends React.Component { render() { const {active, disabled, hint, title = this.props.id} = this.props; - const stringTitle = (hint || typeof title === 'string' ? title : '') as string; + const stringTitle = hint ?? ((typeof title === 'string' && title) || ''); return ( // eslint-disable-next-line jsx-a11y/click-events-have-key-events