diff --git a/src/shared/components/person/settings.tsx b/src/shared/components/person/settings.tsx index da8b5d42..393f7ac8 100644 --- a/src/shared/components/person/settings.tsx +++ b/src/shared/components/person/settings.tsx @@ -1,5 +1,6 @@ import { communityToChoice, + enableDownvotes, fetchCommunities, fetchThemeList, fetchUsers, @@ -714,6 +715,7 @@ export class Settings extends Component { saveUserSettingsHtmlForm() { const selectedLangs = this.state.saveUserSettingsForm.discussion_languages; + const siteRes = this.state.siteRes; return ( <> @@ -746,8 +748,8 @@ export class Settings extends Component { onContentChange={this.handleBioChange} maxLength={300} hideNavigationWarnings - allLanguages={this.state.siteRes.all_languages} - siteLanguages={this.state.siteRes.discussion_languages} + allLanguages={siteRes.all_languages} + siteLanguages={siteRes.discussion_languages} /> @@ -843,8 +845,8 @@ export class Settings extends Component { { -
-
- - + {enableDownvotes(siteRes) && ( +
+
+ + +
-
+ )}