ilmoi/nft-armory

How to display only one collection in 'View'?

Opened this issue · 0 comments

I want to only display NFTs from a certain collection. I tried adding functions like this in NFTget.ts:

function filterAgain(NFTs: INFT[]): INFT[] {
return NFTs.filter(
(n) =>
n.metadataOnchain.updateAuthority == 'HwMBMB6QpPJNyFnbVtt2UKVmJQPGnKKsMfaxNUyWahmc'
)

However this did not work. Could someone give me a hint what I could do to only display one collection? Thanks in advance and leave a Solana tipping wallet if you would like.