Skip to content

Commit 3f351e6

Browse files
author
“Bastien
committed
Use isLooselyEqual to verify "!=" conditions in rule based styling
1 parent 8147242 commit 3f351e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/styling/StyleRuleEvaluator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const evaluateCondition = (realValue, condition, ruleValue) => {
155155
return isLooselyEqual(realValue, ruleValue);
156156
}
157157
if (condition == '!=') {
158-
return realValue !== ruleValue;
158+
return !isLooselyEqual(realValue, ruleValue);
159159
}
160160
if (!isNaN(Number(ruleValue))) {
161161
ruleValue = Number(ruleValue);

0 commit comments

Comments
 (0)