Make tag page check lowercase tag field
This commit is contained in:
parent
6e2d16225e
commit
4ca1d33d65
|
@ -27,10 +27,8 @@ export default function TagPage(props: { contracts: Contract[] }) {
|
||||||
|
|
||||||
const contracts = useContracts()
|
const contracts = useContracts()
|
||||||
|
|
||||||
const taggedContracts = (contracts ?? props.contracts).filter(
|
const taggedContracts = (contracts ?? props.contracts).filter((contract) =>
|
||||||
(contract) =>
|
contract.lowercaseTags.includes(tag.toLowerCase())
|
||||||
contract.description.toLowerCase().includes(`#${tag.toLowerCase()}`) ||
|
|
||||||
contract.question.toLowerCase().includes(`#${tag.toLowerCase()}`)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const { query, setQuery, sort, setSort } = useQueryAndSortParams({
|
const { query, setQuery, sort, setSort } = useQueryAndSortParams({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user