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

Commit

Permalink
Filter Products by Price: Decrease step sequence from 10 to 1 (#6486)
Browse files Browse the repository at this point in the history
  • Loading branch information
frontdevde authored May 31, 2022
1 parent 83a3e64 commit 8a25989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/base/components/price-slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 8a25989

Please sign in to comment.