feat: show 1155s in collection filter (#5498)

* show 1155s in collection filter

* continue to hide shared contract collections

Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
This commit is contained in:
Charles Bachmeier 2022-12-01 14:19:37 -05:00 committed by GitHub
parent 35d66f1e09
commit aa3225c21c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,10 +14,7 @@ export const OSCollectionsFetcher = async ({ params }: any): Promise<WalletColle
const walletCollections = await r.json()
if (walletCollections) {
return walletCollections
.filter(
(collection: any) =>
collection.primary_asset_contracts.length && collection.primary_asset_contracts[0].schema_name === 'ERC721'
)
.filter((collection: any) => collection.primary_asset_contracts.length)
.map((collection: any) => ({
address: collection.primary_asset_contracts[0].address,
name: collection.name,