Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 375b435

Browse files
committed
hide analytics settings if no piwik url
1 parent e9c326a commit 375b435

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/structures/UserSettings.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,8 @@ module.exports = React.createClass({
777777
},
778778

779779
_renderAnalyticsControl: function() {
780+
if (!SdkConfig.get().piwik) return <div/>;
781+
780782
return <div>
781783
<h3>{ _t('Analytics') }</h3>
782784
<div className="mx_UserSettings_section">

0 commit comments

Comments
 (0)