diff --git a/webapp/src/components/BatchCard.tsx b/webapp/src/components/BatchCard.tsx index d84ce84..b09a802 100644 --- a/webapp/src/components/BatchCard.tsx +++ b/webapp/src/components/BatchCard.tsx @@ -144,7 +144,7 @@ function BuyBatchButton({ // enabled: false, args: [astaverdeContractConfig.address, parseUnits(totalPrice.toString(), 6)], }); - const { write: approve } = useContractWrite(configApprove); + const { writeAsync: approve } = useContractWrite(configApprove); const { config: configBuyBatch } = usePrepareContractWrite({ ...astaverdeContractConfig, @@ -170,8 +170,11 @@ function BuyBatchButton({