Use faster lookup method

Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
Jorik Schellekens 2020-04-28 14:17:50 +01:00 committed by GitHub
parent a8407c9508
commit c268b98ded
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,7 +168,7 @@ export default class StyleUserSettingsTab extends React.Component {
<div className="mx_SettingsTab">
<div className="mx_SettingsTab_heading">{_t("Appearance")}</div>
{this._renderThemeSection()}
{SettingsStore.getValue("feature_font_scaling") ? this._renderFontSection() : null}
{SettingsStore.isFeatureEnabled("feature_font_scaling") ? this._renderFontSection() : null}
</div>
);
}