diff --git a/src/components/structures/LoggedInView.js b/src/components/structures/LoggedInView.js index 6217a91b2e..2bc6522232 100644 --- a/src/components/structures/LoggedInView.js +++ b/src/components/structures/LoggedInView.js @@ -433,7 +433,7 @@ const LoggedInView = React.createClass({ break; } - const mauLimitEvent = this.state.serverNoticeEvents.find((e) => { + const usageLimitEvent = this.state.serverNoticeEvents.find((e) => { return e && e.getType() === 'm.server_notice.usage_limit_reached'; }); @@ -444,10 +444,10 @@ const LoggedInView = React.createClass({ adminContact={this.state.syncErrorData.error.data.admin_contact} limitType={this.state.syncErrorData.error.data.limit_type} />; - } else if (mauLimitEvent) { + } else if (usageLimitEvent) { topBar = ; } else if (this.props.showCookieBar && this.props.config.piwik