fix: nft ipfs link
This commit is contained in:
parent
9ea11e0e26
commit
7f9f3648cb
|
|
@ -113,7 +113,11 @@ export default async function SiteNFTPage({
|
|||
? `data:image/svg+xml,${encodeURIComponent(
|
||||
nft.content_uri,
|
||||
)}` || ""
|
||||
: toGateway(`ipfs://${nft.content_uri}`) || ""
|
||||
: toGateway(
|
||||
nft.content_uri?.startsWith?.("ipfs://")
|
||||
? nft.content_uri
|
||||
: `ipfs://${nft.content_uri}`,
|
||||
) || ""
|
||||
}
|
||||
mime_type={nft.content_type}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue