]> Untitled Git - lemmy-ui.git/commitdiff
Only show the determined warning for multiple. (#952)
authorDessalines <dessalines@users.noreply.github.com>
Wed, 22 Feb 2023 13:03:04 +0000 (08:03 -0500)
committerGitHub <noreply@github.com>
Wed, 22 Feb 2023 13:03:04 +0000 (08:03 -0500)
src/shared/components/common/language-select.tsx

index d98be2e295dd446f28fb0468cea6b122df2c9d35..64cbac49806ffe462d7304f918a0086d3b9647a9 100644 (file)
@@ -48,9 +48,11 @@ export class LanguageSelect extends Component<LanguageSelectProps, any> {
       this.selectBtn
     ) : (
       <div>
-        <div className="alert alert-warning" role="alert">
-          {i18n.t("undetermined_language_warning")}
-        </div>
+        {this.props.multiple && (
+          <div className="alert alert-warning" role="alert">
+            {i18n.t("undetermined_language_warning")}
+          </div>
+        )}
         <div className="form-group row">
           <label
             className={classNames("col-form-label", {