OverflowTooltip: Don't render component when text is empty
Signed-off-by: Robin Murphy <robin@monzo.com>
This commit is contained in:
@@ -40,6 +40,10 @@ export const OverflowTooltip = (props: Props) => {
|
||||
setHover(truncated);
|
||||
};
|
||||
|
||||
if (!props.text) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<Tooltip
|
||||
title={props.title ?? props.text!}
|
||||
|
||||
Reference in New Issue
Block a user