From f2a18b9e6c637fc30ab8f4a205217808be571cd6 Mon Sep 17 00:00:00 2001 From: Michal Vanek Date: Fri, 6 Dec 2024 14:04:10 +0100 Subject: [PATCH] fix(coinmarket): fix undefined trade --- .../hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts index b734bd2290d..3833b0d631f 100644 --- a/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts +++ b/packages/suite/src/hooks/wallet/coinmarket/form/useCoinmarketExchangeForm.ts @@ -128,7 +128,7 @@ export const useCoinmarketExchangeForm = ({ const trades = useSelector(state => state.wallet.coinmarket.trades); const trade = trades.find( trade => - trade.tradeType === 'exchange' && transactionId && trade.data.quoteId === transactionId, + trade.tradeType === 'exchange' && transactionId && trade.data.orderId === transactionId, ) as TradeExchange | undefined; const { defaultCurrency, defaultValues } = useCoinmarketExchangeFormDefaultValues(account);