Skip to content

Commit

Permalink
fix: nft message
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeday committed Nov 7, 2024
1 parent c7e9946 commit 10e7133
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { BigNumber } from 'ethers';
import { useSDK } from '@lido-sdk/react';
import { Link, Loader } from '@lidofinance/lido-ui';

import { config } from 'config';
Expand All @@ -22,6 +21,7 @@ import {
NFTImageExample,
AddNftWrapper,
} from './styles';
import { useConnectorInfo } from 'reef-knot/core-react';

const LINK_ADD_NFT_GUIDE = `${config.helpOrigin}/en/articles/7858367-how-do-i-add-the-lido-nft-to-metamask`;

Expand All @@ -37,10 +37,9 @@ export const TxRequestStageSuccess = ({
amount,
}: TxRequestStageSuccessProps) => {
const amountEl = <TxAmount amount={amount} symbol={tokenName} />;
const { providerWeb3 } = useSDK();
const { isInjected: showAddGuideLink } = useConnectorInfo();
const { data: nftData, initialLoading: nftLoading } =
useNftDataByTxHash(txHash);
const showAddGuideLink = !!providerWeb3?.provider.isMetaMask;
const { closeModal } = useTransactionModal();

const successDescription = (
Expand Down

0 comments on commit 10e7133

Please sign in to comment.