You've already forked matrix-react-sdk
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:
@@ -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} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user