From b8fd619d305552a630c48145ed91ecb507882c82 Mon Sep 17 00:00:00 2001 From: gomes <17035424+gomesalexandre@users.noreply.github.com> Date: Wed, 8 Jan 2025 01:59:24 +0400 Subject: [PATCH] fix: new swapper flow cow buy Tx links (#8496) --- .../components/TradeConfirm/ExpandedStepperSteps.tsx | 1 + .../MultiHopTrade/components/TradeConfirm/TxLabel.tsx | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/MultiHopTrade/components/TradeConfirm/ExpandedStepperSteps.tsx b/src/components/MultiHopTrade/components/TradeConfirm/ExpandedStepperSteps.tsx index 0db4b809a5f..c724cca2d8f 100644 --- a/src/components/MultiHopTrade/components/TradeConfirm/ExpandedStepperSteps.tsx +++ b/src/components/MultiHopTrade/components/TradeConfirm/ExpandedStepperSteps.tsx @@ -251,6 +251,7 @@ export const ExpandedStepperSteps = ({ activeTradeQuote }: ExpandedStepperStepsP )} {firstHopSwap.buyTxHash && firstHopSwap.buyTxHash !== firstHopSwap.sellTxHash && ( { const { data: maybeSafeTx } = useSafeTxQuery({ maybeSafeTxHash: txHash, @@ -24,9 +26,9 @@ export const TxLabel = ({ const txLink = getTxLink({ defaultExplorerBaseUrl: explorerBaseUrl, maybeSafeTx, - tradeId: txHash, accountId, name: swapperName, + ...(isBuyTxHash ? { txId: txHash } : { tradeId: txHash }), }) return txLink ? (