chore: add more ip infringing collections to the blocklist (#6446)
* updated blocked collections and don't allow for address search of blocked collections * revert to array
This commit is contained in:
parent
e3c589ae41
commit
c178da626f
@ -82,5 +82,9 @@ export function useCollectionSearch(queryOrAddress: string): useCollectionSearch
|
|||||||
const isName = !isAddress(queryOrAddress.toLowerCase())
|
const isName = !isAddress(queryOrAddress.toLowerCase())
|
||||||
const queryResult = useCollectionQuerySearch(queryOrAddress, /* skip= */ !isName)
|
const queryResult = useCollectionQuerySearch(queryOrAddress, /* skip= */ !isName)
|
||||||
const addressResult = useCollection(queryOrAddress, /* skip= */ isName)
|
const addressResult = useCollection(queryOrAddress, /* skip= */ isName)
|
||||||
return isName ? queryResult : { data: [addressResult.data], loading: addressResult.loading }
|
return isName
|
||||||
|
? queryResult
|
||||||
|
: blocklistedCollections.includes(queryOrAddress)
|
||||||
|
? { data: [], loading: false }
|
||||||
|
: { data: [addressResult.data], loading: addressResult.loading }
|
||||||
}
|
}
|
||||||
|
@ -27,4 +27,7 @@ export const blocklistedCollections = [
|
|||||||
'0xd5eeac01b0d1d929d6cffaaf78020af137277293',
|
'0xd5eeac01b0d1d929d6cffaaf78020af137277293',
|
||||||
'0x85c08fffa9510f87019efdcf986301873cbb10d6',
|
'0x85c08fffa9510f87019efdcf986301873cbb10d6',
|
||||||
'0x32d7e58933fceea6b73a13f8e30605d80915b616',
|
'0x32d7e58933fceea6b73a13f8e30605d80915b616',
|
||||||
|
'0x85c08fffa9510f87019efdcf986301873cbb10d6',
|
||||||
|
'0xd5eeac01b0d1d929d6cffaaf78020af137277293',
|
||||||
|
'0x88e49f9fd4cc3d30f2f46c652f59fb52c4874f23',
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user