From 303722f3b8b84a73087add626ecb5e9b8f8f2cba Mon Sep 17 00:00:00 2001 From: Kyrylo Klymenko Date: Sat, 21 Dec 2024 06:55:47 +0100 Subject: [PATCH] Figured out there was an extra field which shouldn't be there in AirdropModal >.< --- src/components/ui/modals/AirdropModal.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/ui/modals/AirdropModal.tsx b/src/components/ui/modals/AirdropModal.tsx index 311c19b24..9e8478f9f 100644 --- a/src/components/ui/modals/AirdropModal.tsx +++ b/src/components/ui/modals/AirdropModal.tsx @@ -6,7 +6,6 @@ import { useTranslation } from 'react-i18next'; import { Address, getAddress, isAddress } from 'viem'; import { usePublicClient } from 'wagmi'; import * as Yup from 'yup'; -import { useValidationAddress } from '../../../hooks/schemas/common/useValidationAddress'; import { useFractal } from '../../../providers/App/AppProvider'; import { useDaoInfoStore } from '../../../store/daoInfo/useDaoInfoStore'; import { BigIntValuePair, TokenBalance } from '../../../types'; @@ -57,10 +56,7 @@ export function AirdropModal({ const fungibleAssetsWithBalance = assetsFungible.filter(asset => parseFloat(asset.balance) > 0); const [nonceInput, setNonceInput] = useState(safe!.nextNonce); - const { addressValidationTest, isValidating } = useValidationAddress(); - const airdropValidationSchema = Yup.object().shape({ - destinationAddress: Yup.string().test(addressValidationTest), selectedAsset: Yup.object() .shape({ tokenAddress: Yup.string().required(), @@ -318,9 +314,7 @@ export function AirdropModal({ marginTop="2rem" width="100%" type="submit" - isDisabled={ - isValidating || !!errors.recipients || !!errors.selectedAsset || isSubmitDisabled - } + isDisabled={!!errors.recipients || !!errors.selectedAsset || isSubmitDisabled} > {submitButtonText}