From 7d690d98e3ca8edeaa1c52770bfef0fdc6db5ca0 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Aug 2018 10:35:27 +0100 Subject: [PATCH] Rename variable as it's now not just MAU --- src/components/structures/LoggedInView.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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