From 8184e33c9f0143f7df0201449b9738ba2440bd78 Mon Sep 17 00:00:00 2001 From: Jay Sitter Date: Sat, 24 Jun 2023 00:03:49 -0400 Subject: [PATCH] fix: Fix up some interface language logic and design --- src/shared/components/comment/comment-form.tsx | 7 +------ src/shared/components/common/language-select.tsx | 2 +- src/shared/components/post/post-form.tsx | 7 +------ src/shared/utils/app/user-interface-language.ts | 14 +++++--------- 4 files changed, 8 insertions(+), 22 deletions(-) diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index 5cce2b53..c9937c62 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 ) : ( -
+