Browse Source

Use === to compare strings in JavaScript

Ghostkeeper 5 years ago
parent
commit
f3ea522811

+ 1 - 1
resources/qml/PrintSetupSelector/Recommended/RecommendedAdhesionSelector.qml

@@ -70,7 +70,7 @@ Item
                         // Remove the "user" setting to see if the rest of the stack prescribes a brim or a raft
                         platformAdhesionType.removeFromContainer(0)
                         adhesionType = platformAdhesionType.properties.value
-                        if(adhesionType == "skirt" || adhesionType == "none")
+                        if(adhesionType === "skirt" || adhesionType === "none")
                         {
                             // If the rest of the stack doesn't prescribe an adhesion-type, default to a brim
                             adhesionType = "brim"