Fix: price input for update_mint_price not being displayed - 2
This commit is contained in:
parent
91be311cfe
commit
248c85a5c2
@ -84,7 +84,7 @@ const MinterExecutePage: NextPage = () => {
|
||||
const showLimitField = type === 'update_per_address_limit'
|
||||
const showTokenIdField = type === 'mint_for'
|
||||
const showRecipientField = isEitherType(type, ['mint_to', 'mint_for'])
|
||||
const showPriceField = isEitherType(type, ['mint', 'update_mint_price'])
|
||||
const showPriceField = type === 'update_mint_price'
|
||||
|
||||
const messages = useMemo(() => contract?.use(contractState.value), [contract, wallet.address, contractState.value])
|
||||
const payload: DispatchExecuteArgs = {
|
||||
@ -96,7 +96,7 @@ const MinterExecutePage: NextPage = () => {
|
||||
messages,
|
||||
recipient: recipientState.value,
|
||||
txSigner: wallet.address,
|
||||
price: priceState.value ? (Number(priceState.value) * 1_000_000).toString() : '0',
|
||||
price: priceState.value ? priceState.value.toString() : '0',
|
||||
type,
|
||||
}
|
||||
const { isLoading, mutate } = useMutation(
|
||||
|
Loading…
Reference in New Issue
Block a user