fix(explorer): do not display NFTs without an edition (#21120)

This commit is contained in:
Josh 2021-11-01 15:03:19 -07:00 committed by GitHub
parent ec86ff8fb3
commit 59a1d46c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -250,6 +250,11 @@ async function fetchAccountInfo(
metadata,
connection
);
if (!editionInfo.masterEdition && !editionInfo.edition) {
throw new Error("No edition found");
}
nftData = { metadata: metadata.data, editionInfo };
}
}