From 8a259892f380e0f1c1b419e7c1c77a22eac6bcbc Mon Sep 17 00:00:00 2001 From: "Michael P. Pfeiffer" Date: Tue, 31 May 2022 12:44:50 +0200 Subject: [PATCH] Filter Products by Price: Decrease step sequence from 10 to 1 (#6486) --- assets/js/base/components/price-slider/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/base/components/price-slider/index.tsx b/assets/js/base/components/price-slider/index.tsx index aa1ef665945..421d1f53222 100644 --- a/assets/js/base/components/price-slider/index.tsx +++ b/assets/js/base/components/price-slider/index.tsx @@ -84,8 +84,8 @@ const PriceSlider = ( { const minRange = useRef< HTMLInputElement >( null ); const maxRange = useRef< HTMLInputElement >( null ); - // We want step to default to 10 major units, e.g. $10. - const stepValue = step ? step : 10 * 10 ** currency.minorUnit; + // We want step to default to 1 major unit, e.g. $1. + const stepValue = step ? step : 10 ** currency.minorUnit; const [ minPriceInput, setMinPriceInput ] = useState( minPrice ); const [ maxPriceInput, setMaxPriceInput ] = useState( maxPrice );