Update mint price calculation for open edition collections

This commit is contained in:
Serkan Reis 2023-06-20 22:32:53 +03:00
parent fabc53de42
commit 1f6fa1e34b

View File

@ -67,11 +67,7 @@ export const MintingDetails = ({ onChange, uploadMethod, minimumMintPrice }: Min
useEffect(() => {
const data: MintingDetailsDataProps = {
unitPrice: unitPriceState.value
? (Number(unitPriceState.value) * 1_000_000).toString()
: unitPriceState.value === 0
? '0'
: '',
unitPrice: unitPriceState.value ? Number(unitPriceState.value).toString() : unitPriceState.value === 0 ? '0' : '',
perAddressLimit: perAddressLimitState.value,
startTime: timestamp ? (timestamp.getTime() * 1_000_000).toString() : '',
endTime: endTimestamp ? (endTimestamp.getTime() * 1_000_000).toString() : '',