From 59a1d46c38c3bc4719f1fa498384d3774aa98794 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 1 Nov 2021 15:03:19 -0700 Subject: [PATCH] fix(explorer): do not display NFTs without an edition (#21120) --- explorer/src/providers/accounts/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/explorer/src/providers/accounts/index.tsx b/explorer/src/providers/accounts/index.tsx index bf6598c66b..92c5a0b9a7 100644 --- a/explorer/src/providers/accounts/index.tsx +++ b/explorer/src/providers/accounts/index.tsx @@ -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 }; } }