From 084a10478b369e045be6ea2716f25ee4583119cf Mon Sep 17 00:00:00 2001 From: Bella Lian Date: Thu, 12 Jul 2018 10:46:55 +0800 Subject: [PATCH] fix bug RCINT-7978 Region setting alert prompts occasionally when login telus --- .../ringcentral-integration/modules/RegionSettings/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/ringcentral-integration/modules/RegionSettings/index.js b/packages/ringcentral-integration/modules/RegionSettings/index.js index e0153e9d8a..2ffdc04ab7 100644 --- a/packages/ringcentral-integration/modules/RegionSettings/index.js +++ b/packages/ringcentral-integration/modules/RegionSettings/index.js @@ -38,6 +38,7 @@ export default class RegionSettings extends RcModule { * @param {TabManager} params.tabManager - tabManager module instance */ constructor({ + brand, storage, extensionInfo, dialingPlan, @@ -49,6 +50,7 @@ export default class RegionSettings extends RcModule { ...options, actionTypes, }); + this._brand = brand; this._storage = storage; this._alert = alert; this._dialingPlan = dialingPlan; @@ -144,7 +146,9 @@ export default class RegionSettings extends RcModule { )) ) { countryCode = null; - this._alertSettingsChanged(); + if (this._brand.id === '1210') { + this._alertSettingsChanged(); + } } if (!countryCode) { const country = this.availableCountries.find(plan => (