Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit f480e34

Browse files
Sidsector9nielslangekmanijaknefeline
authored
fix/8129: remove rounding the caused issue with UI (#9118)
* remove rounding the caused issue with UI * jslint autofixes --------- Co-authored-by: Niels Lange <[email protected]> Co-authored-by: Karol Manijak <[email protected]> Co-authored-by: Patricia Hillebrandt <[email protected]>
1 parent ee9bb7b commit f480e34

File tree

1 file changed

+7
-10
lines changed
  • assets/js/base/components/price-slider

1 file changed

+7
-10
lines changed

assets/js/base/components/price-slider/index.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,14 @@ const PriceSlider = ( {
148148
}
149149

150150
const low =
151-
Math.round(
152-
100 *
153-
( ( minPrice - minConstraint ) /
154-
( maxConstraint - minConstraint ) )
155-
) - 0.5;
151+
100 *
152+
( ( minPrice - minConstraint ) /
153+
( maxConstraint - minConstraint ) );
154+
156155
const high =
157-
Math.round(
158-
100 *
159-
( ( maxPrice - minConstraint ) /
160-
( maxConstraint - minConstraint ) )
161-
) + 0.5;
156+
100 *
157+
( ( maxPrice - minConstraint ) /
158+
( maxConstraint - minConstraint ) );
162159

163160
return {
164161
'--low': low + '%',

0 commit comments

Comments
 (0)