Merge pull request #36 from public-awesome/cover-image-url-req-update

Disable cover image URL extension check
This commit is contained in:
Jorge Hernandez 2022-10-20 11:43:48 -06:00 committed by GitHub
commit 2c8f66a5d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = () => {