From: Jay Sitter Date: Sat, 24 Jun 2023 04:03:49 +0000 (-0400) Subject: fix: Fix up some interface language logic and design X-Git-Url: http://these/git/%7B%60/feeds/front/static/%7BpictrsAvatarThumbnail%28this.state.siteRes.site.icon%29%7D?a=commitdiff_plain;h=8184e33c9f0143f7df0201449b9738ba2440bd78;p=lemmy-ui.git fix: Fix up some interface language logic and design --- diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index 5cce2b5..c9937c6 100644 --- a/src/shared/components/comment/comment-form.tsx +++ b/src/shared/components/comment/comment-form.tsx @@ -41,12 +41,7 @@ export class CommentForm extends Component { : undefined : undefined; - const userInterfaceLangId = !UserService.Instance.myUserInfo - ? 0 - : getUserInterfaceLangId({ - myUserInfo: UserService.Instance.myUserInfo, - allLanguages: this.props.allLanguages, - }); + const userInterfaceLangId = getUserInterfaceLangId(this.props.allLanguages); return (
{ return this.props.iconVersion ? ( this.selectBtn ) : ( -
+