From 391b712bde688dcb01b923ec7cf151122b2e957f Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Mon, 21 Aug 2023 19:45:23 +0300 Subject: [PATCH] Prevent duplicate protocol in the base token uri --- pages/collections/create.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 5311fba..4ba9555 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -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}`