From 0bda607bb2fb22eb622cb2d5db253f0a1dd6cbad Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 16 May 2018 15:53:43 +0100 Subject: [PATCH] Only show cookie bar if analytics configured --- src/components/structures/LoggedInView.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index c1d30391ab..2dd5a75c47 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -354,8 +354,10 @@ const LoggedInView = React.createClass({ let topBar; const isGuest = this.props.matrixClient.isGuest(); - if (this.props.showCookieBar) { - const policyUrl = this.props.config.piwik ? (this.props.config.piwik.policyUrl || null) : null; + if (this.props.showCookieBar && + this.props.config.piwik + ) { + const policyUrl = this.props.config.piwik.policyUrl || null; topBar = ; } else if (this.props.hasNewVersion) { topBar =