diff --git a/components/collections/creation/UploadDetails.tsx b/components/collections/creation/UploadDetails.tsx index 44ce386..f10ad44 100644 --- a/components/collections/creation/UploadDetails.tsx +++ b/components/collections/creation/UploadDetails.tsx @@ -1,4 +1,5 @@ /* eslint-disable eslint-comments/disable-enable-pair */ +/* eslint-disable no-nested-ternary */ /* eslint-disable no-misleading-character-class */ /* eslint-disable no-control-regex */ /* eslint-disable @typescript-eslint/no-loop-func */ @@ -445,7 +446,7 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho 'before:absolute before:inset-0 before:hover:bg-white/5 before:transition', )} id="assetFiles" - multiple={minterType === 'vending'} + multiple onChange={selectAssets} ref={assetFilesRef} type="file" @@ -459,7 +460,11 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho className="block mt-5 mr-1 mb-1 ml-8 w-full font-bold text-white dark:text-gray-300" htmlFor="metadataFiles" > - {minterType === 'vending' ? 'Metadata Selection' : 'Metadata Selection (optional)'} + {minterType === 'vending' + ? 'Metadata Selection' + : assetFilesArray.length === 1 + ? 'Metadata Selection (optional)' + : 'Metadata Selection'}