fix: Fix up some interface language logic and design

This commit is contained in:
Jay Sitter 2023-06-24 00:03:49 -04:00
parent 35d20491ea
commit 8184e33c9f
4 changed files with 8 additions and 22 deletions

View file

@ -326,12 +326,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
render() {
const url = this.state.form.url;
const userInterfaceLangId = !UserService.Instance.myUserInfo
? 0
: getUserInterfaceLangId({
myUserInfo: UserService.Instance.myUserInfo,
allLanguages: this.props.allLanguages,
});
const userInterfaceLangId = getUserInterfaceLangId(this.props.allLanguages);
return (
<form className="post-form" onSubmit={linkEvent(this, handlePostSubmit)}>