Update asset selection checks for 1/1 collections - 2

This commit is contained in:
Serkan Reis 2023-01-17 16:39:05 +03:00
parent ff726f6a27
commit 75bbcb011b

View File

@ -98,7 +98,7 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho
setAssetFilesArray([])
setMetadataFilesArray([])
if (event.target.files === null) return
if (minterType === 'vending' || (minterType === 'base' && assetFilesArray.length > 1)) {
if (minterType === 'vending' || (minterType === 'base' && event.target.files.length > 1)) {
//sort the files
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