Skip to content

Commit

Permalink
fix(coinmarket): fix undefined trade
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeWall authored and MiroslavProchazka committed Dec 9, 2024
1 parent 3411501 commit f2a18b9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f2a18b9

Please sign in to comment.