Skip to content

Commit

Permalink
fix(core): ids facet bounds checking was inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
HoyosJuan committed Feb 4, 2025
1 parent 5786e57 commit 2c7461f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ export abstract class IDSFacet {
let maxPass = true;

if (min !== undefined) {
minPass = minInclusive ? value <= min : value < min;
minPass = minInclusive ? value >= min : value > min;
}

if (max !== undefined) {
maxPass = maxInclusive ? value >= max : value > max;
maxPass = maxInclusive ? value <= max : value < max;
}

pass = minPass && maxPass;
Expand Down

0 comments on commit 2c7461f

Please sign in to comment.