Skip to content

Commit

Permalink
Removed unreacheable component from SwapMod and respective Mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro committed Mar 18, 2022
1 parent b671874 commit 3d33f77
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions src/custom/pages/Swap/SwapMod.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ import { HashLink } from 'react-router-hash-link'
import { useGetQuoteAndStatus } from 'state/price/hooks'
import { SwapProps, ButtonError, ButtonPrimary } from '.' // mod
import TradeGp from 'state/swap/TradeGp'
import AdvancedSwapDetailsDropdown from 'components/swap/AdvancedSwapDetailsDropdown'
import { formatSmart } from 'utils/format'
import { RowSlippage } from 'components/swap/TradeSummary/RowSlippage'
import usePrevious from 'hooks/usePrevious'
Expand Down Expand Up @@ -961,9 +960,6 @@ export default function Swap({
}
detailsTitle="This wallet is not yet supported"
/>
) : !swapIsUnsupported ? (
// TODO: I think this in unreachable, given that `swapIsUnsupported` returns null when false on line 936
<AdvancedSwapDetailsDropdown trade={trade} allowedSlippage={allowedSlippage} />
) : (
<UnsupportedCurrencyFooter show={swapIsUnsupported} currencies={[currencies.INPUT, currencies.OUTPUT]} />
)}
Expand Down

0 comments on commit 3d33f77

Please sign in to comment.