From ba550fd6e8102cfa66f4ea9e56583c9eec1eabb1 Mon Sep 17 00:00:00 2001 From: memoyil <2213635+memoyil@users.noreply.github.com> Date: Fri, 26 May 2023 21:36:32 +0200 Subject: [PATCH] fix: Build --- .../src/views/Swap/components/AdvancedSwapDetails.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/src/views/Swap/components/AdvancedSwapDetails.tsx b/apps/web/src/views/Swap/components/AdvancedSwapDetails.tsx index aa5ed92fbbf98f..98abd13db26ab3 100644 --- a/apps/web/src/views/Swap/components/AdvancedSwapDetails.tsx +++ b/apps/web/src/views/Swap/components/AdvancedSwapDetails.tsx @@ -1,6 +1,6 @@ import { useTranslation } from '@pancakeswap/localization' import { Currency, CurrencyAmount, Percent, TradeType } from '@pancakeswap/sdk' -import { LegacyPair as Pair } from '@pancakeswap/smart-router/evm' +import { LegacyPair as Pair } from '@pancakeswap/smart-router/legacy-router' import { Modal, ModalV2, @@ -64,8 +64,8 @@ export const TradeSummary = memo(function TradeSummary({ {isExactIn - ? `${formatAmount(slippageAdjustedAmounts[Field.OUTPUT], 4)} ${outputAmount.currency.symbol}` ?? '-' - : `${formatAmount(slippageAdjustedAmounts[Field.INPUT], 4)} ${inputAmount.currency.symbol}` ?? '-'} + ? `${formatAmount(slippageAdjustedAmounts[Field.OUTPUT], 4)} ${outputAmount?.currency?.symbol}` ?? '-' + : `${formatAmount(slippageAdjustedAmounts[Field.INPUT], 4)} ${inputAmount?.currency?.symbol}` ?? '-'} @@ -144,7 +144,7 @@ export const TradeSummary = memo(function TradeSummary({ placement="top" /> - {`${formatAmount(realizedLPFee, 4)} ${inputAmount.currency.symbol}`} + {`${formatAmount(realizedLPFee, 4)} ${inputAmount?.currency?.symbol}`} )} @@ -232,7 +232,7 @@ export const AdvancedSwapDetails = memo(function AdvancedSwapDetails({ inputCurrency={inputAmount.currency} pairs={pairs} path={path} - outputCurrency={outputAmount.currency} + outputCurrency={outputAmount?.currency} />