Skip to content

Commit

Permalink
Merge branch 'main' into fix/6890
Browse files Browse the repository at this point in the history
  • Loading branch information
roiLeo authored Aug 23, 2023
2 parents c413ae2 + 7584d84 commit 6f9d184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/items/ItemsGrid/utils/useSearchParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ function useSearchKeywords() {
function useSearchPriceRange() {
const route = useRoute()
const priceRange = computed(() => {
const minPrice = route.query.min ?? 0
const minPrice = route.query.min ?? undefined

if (route.query.listed !== 'true') {
return {}
}

const defaultParams = {
price_gt: '0',
price_gte: Number(minPrice),
price_gte: minPrice && Number(minPrice),
}

if (route.query.max) {
Expand Down

0 comments on commit 6f9d184

Please sign in to comment.