Prevent duplicate protocol in the base token uri

This commit is contained in:
Serkan Reis 2023-08-21 19:45:23 +03:00
parent 1ca1d08b2a
commit 391b712bde

View File

@ -1297,7 +1297,7 @@ const CollectionCreationPage: NextPage = () => {
baseMinterDetails,
openEditionMinterDetails,
vendingMinterContractAddress,
baseTokenUri: `ipfs://${baseTokenUri}`,
baseTokenUri: `${baseTokenUri?.startsWith('ipfs://') ? baseTokenUri : `ipfs://${baseTokenUri}`}`,
coverImageUrl:
uploadDetails?.uploadMethod === 'new'
? `ipfs://${coverImageUrl}/${collectionDetails?.imageFile[0]?.name as string}`