Skip to content

Commit

Permalink
chore: review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanya-atatakai committed Dec 13, 2024
1 parent 4aef113 commit 09ef687
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/components/SetupPage/Create/SetupEoaFunding.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { CopyOutlined } from '@ant-design/icons';
import { Flex, message, Tooltip, Typography } from 'antd';
import { formatEther } from 'ethers/lib/utils';
import { useCallback, useEffect, useState } from 'react';
import styled from 'styled-components';

Expand All @@ -19,6 +18,7 @@ import { useSetup } from '@/hooks/useSetup';
import { useMasterWalletContext } from '@/hooks/useWallet';
import { copyToClipboard } from '@/utils/copyToClipboard';
import { delayInSeconds } from '@/utils/delay';
import { formatEther } from '@/utils/numberFormatters';

import { SetupCreateHeader } from './SetupCreateHeader';

Expand Down Expand Up @@ -197,7 +197,9 @@ export const SetupEoaFunding = () => {
return (
<SetupEoaFundingForChain
isFunded={isFunded}
minRequiredBalance={Number(formatEther(`${currentFundingRequirements}`))}
minRequiredBalance={parseFloat(
formatEther(`${currentFundingRequirements}`),
)}
currency={CHAIN_CONFIG[currentChain].nativeToken.symbol}
chainName={CHAIN_CONFIG[currentChain].name}
/>
Expand Down

0 comments on commit 09ef687

Please sign in to comment.