diff --git a/components/containers/token-tap/Modals/ClaimModal.tsx b/components/containers/token-tap/Modals/ClaimModal.tsx index 8738cf44..02f005f0 100644 --- a/components/containers/token-tap/Modals/ClaimModal.tsx +++ b/components/containers/token-tap/Modals/ClaimModal.tsx @@ -107,6 +107,16 @@ const ClaimTokenModalBody = ({ if (selectedTokenForClaim.isExpired) return ; + if ( + claimTokenResponse?.state === "Pending" || + collectedToken?.status === "Pending" + ) { + return ; + } + + if (selectedTokenForClaim.isMaxedOut) + return ; + if (method === "requirements") { return ; } @@ -119,16 +129,6 @@ const ClaimTokenModalBody = ({ /> ); - if ( - claimTokenResponse?.state === "Pending" || - collectedToken?.status === "Pending" - ) { - return ; - } - - if (selectedTokenForClaim.isMaxedOut) - return ; - if (!isPermissionsVerified) return ( = ({ ) : isExpired || token.isMaxedOut ? ( openClaimModal(token)} $fontSize="13px" @@ -299,7 +299,7 @@ const TokenCard: FC<{ token: Token; isHighlighted?: boolean }> = ({ ) ) : isExpired || token.isMaxedOut ? ( openClaimModal(token)} $fontSize="13px" diff --git a/utils/wallet/wagmi.ts b/utils/wallet/wagmi.ts index 9c1fba20..275b9ca2 100644 --- a/utils/wallet/wagmi.ts +++ b/utils/wallet/wagmi.ts @@ -3,19 +3,18 @@ import { supportedChains } from "@/constants/chains"; import { injected, mock, safe, walletConnect } from "wagmi/connectors"; import { HttpTransport } from "viem"; -import { TEST_PRIVATE_KEY } from "@/cypress/utils/data"; const getConnectorProviders = () => { - if (process.env.NEXT_PUBLIC_IS_TESTING === "1") { - // const account = privateKeyToAccount(TEST_PRIVATE_KEY); - const connectors = [ - mock({ - accounts: [TEST_PRIVATE_KEY], - }), - ]; + // if (process.env.NEXT_PUBLIC_IS_TESTING === "1") { + // // const account = privateKeyToAccount(TEST_PRIVATE_KEY); + // const connectors = [ + // mock({ + // accounts: [TEST_PRIVATE_KEY], + // }), + // ]; - return connectors; - } + // return connectors; + // } return [ injected({