Only show cookie bar if analytics configured

pull/21833/head
Luke Barnard 2018-05-16 15:53:43 +01:00
parent d15051a635
commit 0bda607bb2
1 changed files with 4 additions and 2 deletions

View File

@ -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 = <CookieBar policyUrl={policyUrl} />;
} else if (this.props.hasNewVersion) {
topBar = <NewVersionBar version={this.props.version} newVersion={this.props.newVersion}