Update asset selection checks for 1/1 collections

This commit is contained in:
Serkan Reis 2023-01-17 16:26:56 +03:00
parent a372f70e31
commit ff726f6a27

View File

@ -98,7 +98,7 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho
setAssetFilesArray([]) setAssetFilesArray([])
setMetadataFilesArray([]) setMetadataFilesArray([])
if (event.target.files === null) return if (event.target.files === null) return
if (minterType === 'vending') { if (minterType === 'vending' || (minterType === 'base' && assetFilesArray.length > 1)) {
//sort the files //sort the files
const sortedFiles = Array.from(event.target.files).sort((a, b) => naturalCompare(a.name, b.name)) const sortedFiles = Array.from(event.target.files).sort((a, b) => naturalCompare(a.name, b.name))
//check if the sorted file names are in numerical order //check if the sorted file names are in numerical order