Skip to content

Commit

Permalink
fixup! feat(suite): added blockbook link to approval tx
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasBoda committed Jan 17, 2025
1 parent 3e674e5 commit 0a791a0
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const CoinmarketOfferExchangeSendApproval = () => {
selectedQuote?.status === 'CONFIRM' ? 'APPROVED' : 'MINIMAL',
);

const blockchainNetworks = useSelector(state => state.wallet.blockchain);
const blockchain = useSelector(state => state.wallet.blockchain);

const { navigateToExchangeForm } = useCoinmarketNavigation(account);

Expand All @@ -74,7 +74,7 @@ export const CoinmarketOfferExchangeSendApproval = () => {
if (!selectedQuote.send) return null;

const symbol = cryptoIdToSymbol(selectedQuote.send);
const blockchain = symbol && blockchainNetworks[symbol];
const blockchainForSend = symbol && blockchain[symbol];

const isToken = parseCryptoId(selectedQuote.send)?.contractAddress !== undefined;

Expand Down Expand Up @@ -145,12 +145,12 @@ export const CoinmarketOfferExchangeSendApproval = () => {
>
{dexTx.to}
</InfoItem>
{selectedQuote.approvalSendTxHash && blockchain && (
{selectedQuote.approvalSendTxHash && blockchainForSend && (
<InfoItem label={<Translation id="TR_EXCHANGE_APPROVAL_TXID" />}>
<IOAddress
txAddress={selectedQuote.approvalSendTxHash}
explorerUrl={blockchain.explorer.tx}
explorerUrlQueryString={blockchain.explorer.queryString}
explorerUrl={blockchainForSend.explorer.tx}
explorerUrlQueryString={blockchainForSend.explorer.queryString}
/>
</InfoItem>
)}
Expand Down

0 comments on commit 0a791a0

Please sign in to comment.