fix CountlyAnalytics canEnable on wrong target

pull/21833/head
Michael Telatynski 2020-10-30 13:42:35 +00:00
parent 50a937c523
commit 3f11259fa8
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ export default class SecurityUserSettingsTab extends React.Component {
}
let privacySection;
if (Analytics.canEnable() || CountlyAnalytics.canEnable()) {
if (Analytics.canEnable() || CountlyAnalytics.instance.canEnable()) {
privacySection = <React.Fragment>
<div className="mx_SettingsTab_heading">{_t("Privacy")}</div>
<div className="mx_SettingsTab_section">