Skip to content

Commit

Permalink
fix: Build
Browse files Browse the repository at this point in the history
  • Loading branch information
memoyil committed Jul 7, 2023
1 parent 20417a7 commit ba550fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/web/src/views/Swap/components/AdvancedSwapDetails.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -64,8 +64,8 @@ export const TradeSummary = memo(function TradeSummary({
<RowFixed>
<Text fontSize="14px">
{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}` ?? '-'}
</Text>
</RowFixed>
</RowBetween>
Expand Down Expand Up @@ -144,7 +144,7 @@ export const TradeSummary = memo(function TradeSummary({
placement="top"
/>
</RowFixed>
<Text fontSize="14px">{`${formatAmount(realizedLPFee, 4)} ${inputAmount.currency.symbol}`}</Text>
<Text fontSize="14px">{`${formatAmount(realizedLPFee, 4)} ${inputAmount?.currency?.symbol}`}</Text>
</RowBetween>
)}
</AutoColumn>
Expand Down Expand Up @@ -232,7 +232,7 @@ export const AdvancedSwapDetails = memo(function AdvancedSwapDetails({
inputCurrency={inputAmount.currency}
pairs={pairs}
path={path}
outputCurrency={outputAmount.currency}
outputCurrency={outputAmount?.currency}
/>
<Flex mt="3em" width="100%" justifyContent="center">
<RoutingSettingsButton />
Expand Down

0 comments on commit ba550fd

Please sign in to comment.