Merge pull request #37 from public-awesome/develop

dev>main
This commit is contained in:
Jorge Hernandez 2022-10-20 11:44:14 -06:00 committed by GitHub
commit 85c240725f
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 = () => {