From 35c36ccde21026229fce1f21db13c2c2adb119bd Mon Sep 17 00:00:00 2001 From: lza_menace Date: Mon, 9 Jan 2023 12:48:40 -0800 Subject: [PATCH] fix ui --- src/template/Sections.jsx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/template/Sections.jsx b/src/template/Sections.jsx index ae43ad4..fadb3d8 100644 --- a/src/template/Sections.jsx +++ b/src/template/Sections.jsx @@ -350,7 +350,7 @@ function Section3(props) { abi: MainABI, enabled: isConnected && options.bombBalance > 0, functionName: 'sendBombs', - cacheTime: 1000, + cacheTime: 200, args: [options.sendBombAmount] }); const sendBombsWrite = useContractWrite({ @@ -453,13 +453,7 @@ function Section3(props) { {options.unaboomersMinted < options.unaboomerMaxMintPerWallet && options.unaboomersKilled + options.unaboomersRadicalized < options.unaboomerMaxSupply && ( <>

- { - radicalizeBoomersWrite.write?.(); - handleStateChange({ - unaboomerAmount: 1, - unaboomerPreviewAmount: 1 - }) - }}> + radicalizeBoomersWrite.write?.()}> {radicalizeBoomersWrite.isLoading && <>minting {options.unaboomerAmount}} {radicalizeBoomersWrite.isIdle && <>mint {options.unaboomerPreviewAmount} ({ethers.utils.formatEther((options.unaboomerPrice * options.unaboomerPreviewAmount).toString())} Ξ)} {radicalizeBoomersWrite.isSuccess && <>sent} @@ -502,13 +496,7 @@ function Section3(props) { {options.bombBalance > 0 && (<>

- { - sendBombsWrite.write?.(); - handleStateChange({ - sendBombAmount: 1, - sendBombPreviewAmount: 1 - }); - }}> + sendBombsWrite.write?.()}> {sendBombsWrite.isLoading && <>sending {options.sendBombAmount}} {sendBombsWrite.isIdle && <>send {options.sendBombPreviewAmount} (~0 Ξ)} {sendBombsWrite.isSuccess && <>sent}