diff --git a/lemmy-translations b/lemmy-translations index 007e5368..a1fff8b4 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit 007e53683768aeba63e9e4c179c1d240217bcee2 +Subproject commit a1fff8b481f4b02327e4ee04088606af627628f2 diff --git a/package.json b/package.json index daefcbd9..332b888d 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ "inferno-server": "^8.1.1", "isomorphic-cookie": "^1.2.4", "jwt-decode": "^3.1.2", - "lemmy-js-client": "0.17.2-rc.14", + "lemmy-js-client": "0.17.2-rc.15", "markdown-it": "^13.0.1", "markdown-it-container": "^3.0.0", "markdown-it-emoji": "^2.0.2", @@ -111,12 +111,12 @@ "prettier-plugin-organize-imports": "^3.2.2", "prettier-plugin-packagejson": "^2.4.3", "rimraf": "^5.0.0", + "service-worker-webpack": "^1.0.0", "sortpack": "^2.3.4", "style-loader": "^3.3.2", "terser": "^5.17.3", "typescript": "^5.0.4", - "webpack-dev-server": "4.15.0", - "service-worker-webpack": "^1.0.0" + "webpack-dev-server": "4.15.0" }, "engines": { "node": ">=8.9.0" diff --git a/src/shared/components/comment/comment-form.tsx b/src/shared/components/comment/comment-form.tsx index c7285193..74d17bff 100644 --- a/src/shared/components/comment/comment-form.tsx +++ b/src/shared/components/comment/comment-form.tsx @@ -17,7 +17,6 @@ import { UserService, WebSocketService } from "../../services"; import { capitalizeFirstLetter, myAuth, - myFirstDiscussionLanguageId, wsClient, wsSubscribe, } from "../../utils"; @@ -77,21 +76,11 @@ export class CommentForm extends Component { : undefined : undefined; - let selectedLang = - typeof this.props.node !== "number" - ? this.props.node.comment_view.comment.language_id - : myFirstDiscussionLanguageId( - this.props.allLanguages, - this.props.siteLanguages, - UserService.Instance.myUserInfo - ); - return (
{UserService.Instance.myUserInfo ? ( { multiple={this.props.multiple} disabled={this.props.disabled} > + {!this.props.multiple && ( + + )} {filteredLangs.map(l => (