From 248c85a5c22beb94f3eea968613d15513e221a40 Mon Sep 17 00:00:00 2001 From: Serkan Reis Date: Sat, 22 Oct 2022 11:06:39 +0300 Subject: [PATCH] Fix: price input for update_mint_price not being displayed - 2 --- pages/contracts/minter/execute.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/contracts/minter/execute.tsx b/pages/contracts/minter/execute.tsx index 57fc627..5cd0b67 100644 --- a/pages/contracts/minter/execute.tsx +++ b/pages/contracts/minter/execute.tsx @@ -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(