Skip to content

Commit

Permalink
isMainnet replace in confirm screen
Browse files Browse the repository at this point in the history
  • Loading branch information
pivilartisant committed May 15, 2024
1 parent bbf62bd commit 4a6474c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import {
import { FiChevronLeft } from 'react-icons/fi';

import { PRESET_HIGH, PRESET_LOW, PRESET_STANDARD } from './Advanced';
import { useFTTransfer } from '@/custom/smart-contract/useFTTransfer';
import { useMNS } from '@/custom/useMNS';
import { usePrepareScCall } from '@/custom/usePrepareScCall';
import Intl from '@/i18n/i18n';
import { Asset } from '@/models/AssetModel';
import { maskAddress } from '@/utils';
Expand All @@ -36,7 +36,7 @@ interface SendConfirmationProps {
export function SendConfirmation(props: SendConfirmationProps) {
const { data, handleConfirm, isLoading } = props;

const { isMainnet } = useFTTransfer();
const { isMainnet } = usePrepareScCall();

const { amount, asset, fees, recipientAddress } = data;
const { symbol, decimals } = asset;
Expand All @@ -59,7 +59,7 @@ export function SendConfirmation(props: SendConfirmationProps) {

useEffect(() => {
reverseResolveDns(recipientAddress);
}, [reverseResolveDns]);
}, [reverseResolveDns, recipientAddress]);

let selectedFees;

Expand Down

0 comments on commit 4a6474c

Please sign in to comment.