Skip to content

Commit

Permalink
Correct fallback for ticker symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
jordankzf committed Jul 30, 2024
1 parent 53f2b7b commit 5364be1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/app/screens/swap/quoteSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,10 @@ export default function QuoteSummary({
const fromUnit =
fromToken === 'BTC'
? 'Sats'
: (fromToken as FungibleToken)?.runeSymbol ??
(fromToken as FungibleToken)?.ticker ??
RUNE_DISPLAY_DEFAULTS.symbol;
: (fromToken as FungibleToken)?.runeSymbol ?? RUNE_DISPLAY_DEFAULTS.symbol;

const toUnit =
toToken?.protocol === 'btc'
? 'Sats'
: toToken?.symbol ?? toToken?.ticker ?? RUNE_DISPLAY_DEFAULTS.symbol;
toToken?.protocol === 'btc' ? 'Sats' : toToken?.symbol ?? RUNE_DISPLAY_DEFAULTS.symbol;

const [showSlippageModal, setShowSlippageModal] = useState(false);
const [slippage, setSlippage] = useState(0.05);
Expand Down

0 comments on commit 5364be1

Please sign in to comment.