REFACTOR: s/translatedfilterPlaceholder/translatedFilterPlaceholder (#9521)

REFACTOR: s/translatedfilterPlaceholder/translatedFilterPlaceholder (#9521)

diff --git a/app/assets/javascripts/select-kit/components/select-kit.js b/app/assets/javascripts/select-kit/components/select-kit.js
index 27e849a..360dd65 100644
--- a/app/assets/javascripts/select-kit/components/select-kit.js
+++ b/app/assets/javascripts/select-kit/components/select-kit.js
@@ -257,7 +257,7 @@ export default Component.extend(
       autoFilterable: "autoFilterable",
       filterIcon: "search",
       filterPlaceholder: "filterPlaceholder",
-      translatedfilterPlaceholder: null,
+      translatedFilterPlaceholder: null,
       icon: null,
       icons: null,
       maximum: null,
diff --git a/app/assets/javascripts/select-kit/components/select-kit/select-kit-filter.js b/app/assets/javascripts/select-kit/components/select-kit/select-kit-filter.js
index 0c833d0..1b56279 100644
--- a/app/assets/javascripts/select-kit/components/select-kit/select-kit-filter.js
+++ b/app/assets/javascripts/select-kit/components/select-kit/select-kit-filter.js
@@ -1,6 +1,6 @@
 import Component from "@ember/component";
 import discourseComputed from "discourse-common/utils/decorators";
-import { isEmpty } from "@ember/utils";
+import { isPresent } from "@ember/utils";
 import { computed } from "@ember/object";
 import { not } from "@ember/object/computed";
 import UtilsMixin from "select-kit/mixins/utils";
@@ -30,14 +30,18 @@ export default Component.extend(UtilsMixin, {
 
   @discourseComputed(
     "selectKit.options.filterPlaceholder",
-    "selectKit.options.translatedfilterPlaceholder"
+    "selectKit.options.translatedFilterPlaceholder"
   )
   placeholder(placeholder, translatedPlaceholder) {
-    return isEmpty(placeholder)
-      ? translatedPlaceholder
-        ? translatedPlaceholder
-        : ""
-      : I18n.t(placeholder);
+    if (isPresent(translatedPlaceholder)) {
+      return translatedPlaceholder;
+    }
+
+    if (isPresent(placeholder)) {
+      return I18n.t(placeholder);
+    }
+
+    return "";
   },
 
   actions: {

GitHub sha: 00f632fb

This commit appears in #9521 which was approved by eviltrout. It was merged by jjaffeux.