Don't double translate labs settings

SettingsStore.getDisplayName() already calls _t() for us.

Fixes https://github.com/vector-im/riot-web/issues/10586
This commit is contained in:
Travis Ralston 2019-08-21 08:55:19 -06:00
parent c7c87ccd9c
commit 5bf0587cc5

View file

@ -32,7 +32,7 @@ export class LabsSettingToggle extends React.Component {
}; };
render() { render() {
const label = _t(SettingsStore.getDisplayName(this.props.featureId)); const label = SettingsStore.getDisplayName(this.props.featureId);
const value = SettingsStore.isFeatureEnabled(this.props.featureId); const value = SettingsStore.isFeatureEnabled(this.props.featureId);
return <LabelledToggleSwitch value={value} label={label} onChange={this._onChange} />; return <LabelledToggleSwitch value={value} label={label} onChange={this._onChange} />;
} }