Skip to content

Commit

Permalink
fix: remove image for now
Browse files Browse the repository at this point in the history
  • Loading branch information
pkxro committed May 29, 2024
1 parent 9f7de63 commit fc82fb2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions app/address/[address]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,20 +263,6 @@ function AccountHeader({ address, account, tokenInfo, isTokenInfoLoading }: { ad
if (metadataAddress?.toString() === address) {
token.name = tokenMetadata.name
}


if (tokenMetadata.uri.endsWith('.json')) {
fetch(tokenMetadata.uri)
.then(response => response.json())
.then(metadata => {
token.logoURI = metadata.image;
})
.catch(() => {
console.error("Failed to resolve image from metadata pointer")
});
} else {
token.logoURI = tokenMetadata.uri
}
}
// Fall back to legacy token list when there is stub metadata (blank uri), updatable by default by the mint authority
else if (!parsedData?.nftData?.metadata.data.uri && tokenInfo) {
Expand Down

0 comments on commit fc82fb2

Please sign in to comment.