From b0ccb38c5567ac26f11bcb7dee6a557974834c82 Mon Sep 17 00:00:00 2001 From: "Michael P. Pfeiffer" Date: Mon, 30 May 2022 16:14:12 +0200 Subject: [PATCH] Filter Products by Price: Decrease step sequence from 10 to 1 --- 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 );