Default title to empty string
Signed-off-by: Robin Murphy <robin@monzo.com>
This commit is contained in:
@@ -40,13 +40,9 @@ export const OverflowTooltip = (props: Props) => {
|
||||
setHover(truncated);
|
||||
};
|
||||
|
||||
if (!props.text) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Tooltip
|
||||
title={props.title ?? props.text!}
|
||||
title={props.title ?? (props.text || '')}
|
||||
placement={props.placement}
|
||||
disableHoverListener={!hover}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user