diff --git a/react/features/base/react/components/Watermarks.web.js b/react/features/base/react/components/Watermarks.web.js index 18d7d3b8e..ed1b49bde 100644 --- a/react/features/base/react/components/Watermarks.web.js +++ b/react/features/base/react/components/Watermarks.web.js @@ -96,19 +96,29 @@ class Watermarks extends Component { * @returns {ReactElement|null} Watermark element or null. */ _renderBrandWatermark() { + let reactElement = null; + if (this.state.showBrandWatermark) { - return ( - -
- + reactElement = ( // eslint-disable-line no-extra-parens +
); + + const { brandWatermarkLink } = this.state; + + if (brandWatermarkLink) { + reactElement = ( // eslint-disable-line no-extra-parens + + { reactElement } + + ); + } } - return null; + return reactElement; } /** @@ -118,19 +128,27 @@ class Watermarks extends Component { * @returns {ReactElement|null} */ _renderJitsiWatermark() { + let reactElement = null; + if (this.state.showJitsiWatermark - || (APP.tokenData.isGuest + || (APP.tokenData.isGuest && this.state.showJitsiWatermarkForGuests)) { - return ( - -
- - ); + reactElement =
; + + const { jitsiWatermarkLink } = this.state; + + if (jitsiWatermarkLink) { + reactElement = ( // eslint-disable-line no-extra-parens + + { reactElement } + + ); + } } - return null; + return reactElement; } /**