🎨 Use non-type-coercing comparisons
[Sone.git] / src / main / resources / templates / knownSones.html
index c113748..c0bb35b 100644 (file)
@@ -7,9 +7,9 @@
                $(document).ready(function() {
                        $("select[name=sort]").change(function() {
                                value = $(this).val();
-                               if ((value == "activity") || (value == "posts") || (value == "images")) {
+                               if ((value === "activity") || (value === "posts") || (value === "images")) {
                                        $("select[name=order]").val("desc");
-                               } else if (value == "name") {
+                               } else if (value === "name") {
                                        $("select[name=order]").val("asc");
                                }
                        });