1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

typo fixed

This commit is contained in:
claudia.holhos 2021-03-01 19:09:43 +02:00
parent 8cce1898fd
commit f1d47bbec9

View File

@ -38,7 +38,7 @@ export default function FilterPrice({
const [priceSelections, setPriceSelections] = useState<string[]>([]) const [priceSelections, setPriceSelections] = useState<string[]>([])
const [serviceSelections, setServiceSelections] = useState<string[]>([]) const [serviceSelections, setServiceSelections] = useState<string[]>([])
const [clearSelected, setClearSeleted] = useState<boolean>(false) const [clearSelected, setClearSelected] = useState<boolean>(false)
async function applyPriceFilter(filterBy: string) { async function applyPriceFilter(filterBy: string) {
let urlLocation = await addExistingParamsToUrl(location, 'priceType') let urlLocation = await addExistingParamsToUrl(location, 'priceType')
@ -84,12 +84,12 @@ export default function FilterPrice({
// one already selected -> both selected // one already selected -> both selected
await applyPriceFilter(FilterByPriceOptions.All) await applyPriceFilter(FilterByPriceOptions.All)
setPriceSelections(priceFilterItems.map((p) => p.value)) setPriceSelections(priceFilterItems.map((p) => p.value))
setClearSeleted(false) setClearSelected(false)
} else { } else {
// none selected -> select // none selected -> select
await applyPriceFilter(value) await applyPriceFilter(value)
setPriceSelections([value]) setPriceSelections([value])
setClearSeleted(false) setClearSelected(false)
} }
} }
} else { } else {
@ -111,11 +111,11 @@ export default function FilterPrice({
if (serviceSelections.length) { if (serviceSelections.length) {
await applyServiceFilter(undefined) await applyServiceFilter(undefined)
setServiceSelections(serviceFilterItems.map((p) => p.value)) setServiceSelections(serviceFilterItems.map((p) => p.value))
setClearSeleted(false) setClearSelected(false)
} else { } else {
await applyServiceFilter(value) await applyServiceFilter(value)
setServiceSelections([value]) setServiceSelections([value])
setClearSeleted(false) setClearSelected(false)
} }
} }
} }
@ -133,7 +133,7 @@ export default function FilterPrice({
setServiceSelections([]) setServiceSelections([])
setPriceSelections([]) setPriceSelections([])
setClearSeleted(true) setClearSelected(true)
setPriceType(undefined) setPriceType(undefined)
setServiceType(undefined) setServiceType(undefined)
navigate(urlLocation) navigate(urlLocation)