1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

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>
This commit is contained in:
Šimon Brandner
2021-02-12 14:28:39 +01:00
parent cb5237a18b
commit d8a9b84af9

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} />;
} }