Don't show tooltip if there is nothing to display

We do this because resource is undefined for @room

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-02-12 14:28:39 +01:00
parent cb5237a18b
commit d8a9b84af9
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ class Pill extends React.Component {
const {yOffset} = this.props; const {yOffset} = this.props;
let tip; let tip;
if (this.state.hover) { if (this.state.hover && resource) {
tip = <Tooltip label={resource} yOffset={yOffset} />; tip = <Tooltip label={resource} yOffset={yOffset} />;
} }