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}
/>