From 5f39d7a6e075146bea22db5bb7a7bea927bfb6d6 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Thu, 20 Oct 2022 20:38:54 +0300 Subject: [PATCH] Disable cover image URL extension check --- pages/collections/create.tsx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pages/collections/create.tsx b/pages/collections/create.tsx index 44b7091..51d8887 100644 --- a/pages/collections/create.tsx +++ b/pages/collections/create.tsx @@ -294,16 +294,6 @@ const CollectionCreationPage: NextPage = () => { if (uploadDetails.uploadMethod === 'existing' && !uploadDetails.baseTokenURI?.includes('ipfs://')) { throw new Error('Please specify a valid base token URI') } - if ( - uploadDetails.uploadMethod === 'existing' && - uploadDetails.imageUrl?.substring(uploadDetails.imageUrl.lastIndexOf('.') + 1) !== 'jpg' && - uploadDetails.imageUrl?.substring(uploadDetails.imageUrl.lastIndexOf('.') + 1) !== 'png' && - uploadDetails.imageUrl?.substring(uploadDetails.imageUrl.lastIndexOf('.') + 1) !== 'jpeg' && - uploadDetails.imageUrl?.substring(uploadDetails.imageUrl.lastIndexOf('.') + 1) !== 'gif' && - uploadDetails.imageUrl?.substring(uploadDetails.imageUrl.lastIndexOf('.') + 1) !== 'svg' - ) { - throw new Error('Please specify a valid cover image URL') - } } const checkCollectionDetails = () => {