diff --git a/ui/component/uriIndicator/view.jsx b/ui/component/uriIndicator/view.jsx index 6458b4afc..3ebc176c5 100644 --- a/ui/component/uriIndicator/view.jsx +++ b/ui/component/uriIndicator/view.jsx @@ -65,18 +65,22 @@ class UriIndicator extends React.PureComponent { return inner; } - const Wrapper = addTooltip - ? ({ children }) => ( - }>{children} - ) - : 'span'; - /* to wrap the UriIndicator element around other DOM nodes as a button */ - const content = children ? children : ({inner}); - return ( - - ); + if (children) { + return ; + } else { + const Wrapper = addTooltip + ? ({ children }) => ( + }> + {children} + + ) + : 'span'; + return ( + + ); + } } else { return null; }