diff --git a/components/badges/creation/ImageUploadDetails.tsx b/components/badges/creation/ImageUploadDetails.tsx index 397f541..180aa06 100644 --- a/components/badges/creation/ImageUploadDetails.tsx +++ b/components/badges/creation/ImageUploadDetails.tsx @@ -106,8 +106,8 @@ export const ImageUploadDetails = ({ onChange, mintRule }: ImageUploadDetailsPro .replace(/,/g, '') .replace(/"/g, '') .replace(/'/g, '') - .replace(/ /g, '') - .replace(regex, ''), + .replace(regex, '') + .trim(), } onChange(data) } catch (error: any) { diff --git a/components/collections/creation/UploadDetails.tsx b/components/collections/creation/UploadDetails.tsx index a9b7a1d..02567a9 100644 --- a/components/collections/creation/UploadDetails.tsx +++ b/components/collections/creation/UploadDetails.tsx @@ -239,15 +239,15 @@ export const UploadDetails = ({ onChange, minterType, baseMinterAcquisitionMetho .replace(/,/g, '') .replace(/"/g, '') .replace(/'/g, '') - .replace(/ /g, '') - .replace(regex, ''), + .replace(regex, '') + .trim(), imageUrl: coverImageUrlState.value .replace('IPFS://', 'ipfs://') .replace(/,/g, '') .replace(/"/g, '') .replace(/'/g, '') - .replace(/ /g, '') - .replace(regex, ''), + .replace(regex, '') + .trim(), baseMinterMetadataFile, } onChange(data) diff --git a/components/openEdition/ImageUploadDetails.tsx b/components/openEdition/ImageUploadDetails.tsx index e48e3be..ad84b0e 100644 --- a/components/openEdition/ImageUploadDetails.tsx +++ b/components/openEdition/ImageUploadDetails.tsx @@ -115,8 +115,8 @@ export const ImageUploadDetails = ({ onChange }: ImageUploadDetailsProps) => { .replace(/,/g, '') .replace(/"/g, '') .replace(/'/g, '') - .replace(/ /g, '') - .replace(regex, ''), + .replace(regex, '') + .trim(), coverImageUrl: coverImageUrlState.value.trim(), } onChange(data) diff --git a/components/openEdition/OffChainMetadataUploadDetails.tsx b/components/openEdition/OffChainMetadataUploadDetails.tsx index 184435e..02c4ce3 100644 --- a/components/openEdition/OffChainMetadataUploadDetails.tsx +++ b/components/openEdition/OffChainMetadataUploadDetails.tsx @@ -194,15 +194,15 @@ export const OffChainMetadataUploadDetails = ({ .replace(/,/g, '') .replace(/"/g, '') .replace(/'/g, '') - .replace(/ /g, '') - .replace(regex, ''), + .replace(regex, '') + .trim(), imageUrl: coverImageUrlState.value .replace('IPFS://', 'ipfs://') .replace(/,/g, '') .replace(/"/g, '') .replace(/'/g, '') - .replace(/ /g, '') - .replace(regex, ''), + .replace(regex, '') + .trim(), openEditionMinterMetadataFile, } onChange(data)