diff --git a/frontend/components/Spawn/Funding/FundRequirement/FundRequirement.tsx b/frontend/components/Spawn/Funding/FundRequirement/FundRequirement.tsx index c76aeffd2..6d03a76eb 100644 --- a/frontend/components/Spawn/Funding/FundRequirement/FundRequirement.tsx +++ b/frontend/components/Spawn/Funding/FundRequirement/FundRequirement.tsx @@ -1,7 +1,6 @@ import { copyToClipboard } from '@/common-util/copyToClipboard'; import { useModals } from '@/hooks'; -import { Address } from '@/types'; -import { AddressNumberRecord } from '@/types'; +import { Address, AddressBooleanRecord } from '@/types'; import { Button, Flex, Typography, message } from 'antd'; import { Dispatch, @@ -25,7 +24,7 @@ type FundRequirementProps = { rpc: string, contractAddress?: Address, ) => Promise; - setReceivedFunds: Dispatch>; + setReceivedFunds: Dispatch>; }; /** @@ -78,7 +77,7 @@ export const FundRequirement = ({ .then((balance: number) => { if (balance >= requirement) { setIsPollingBalance(false); - setReceivedFunds((prev: AddressNumberRecord) => ({ + setReceivedFunds((prev: AddressBooleanRecord) => ({ ...prev, [address]: true, })); diff --git a/frontend/types/index.ts b/frontend/types/index.ts index 952f22f1e..31d520470 100644 --- a/frontend/types/index.ts +++ b/frontend/types/index.ts @@ -1,3 +1,3 @@ export type * from './QRModalData'; export type * from './Address'; -export type * from './Maps'; +export type * from './Records';