mirror of
https://github.com/oceanprotocol/market.git
synced 2024-11-14 17:24:51 +01:00
Merge branch 'main' into feature/optimize-did-fetching-in-tables
This commit is contained in:
commit
29a37b531c
@ -33,9 +33,9 @@ type FilterByPriceOptions = typeof FilterByPriceOptions[keyof typeof FilterByPri
|
|||||||
|
|
||||||
function addPriceFilterToQuerry(sortTerm: string, priceFilter: string): string {
|
function addPriceFilterToQuerry(sortTerm: string, priceFilter: string): string {
|
||||||
sortTerm = priceFilter
|
sortTerm = priceFilter
|
||||||
? sortTerm === ''
|
? /\S/.test(sortTerm)
|
||||||
? `price.type:${priceFilter}`
|
? `${sortTerm} AND price.type:${priceFilter}`
|
||||||
: `${sortTerm} AND price.type:${priceFilter}`
|
: `price.type:${priceFilter}`
|
||||||
: sortTerm
|
: sortTerm
|
||||||
return sortTerm
|
return sortTerm
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user