Fix a condition for checking if a token should be added (#11127)

feature/default_network_editable
Daniel 4 years ago committed by GitHub
parent 86b61a2fc2
commit f9a52edb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/ducks/swaps/swaps.js

@ -443,7 +443,7 @@ export const fetchQuotesAndSetQuoteState = (
if ( if (
toTokenAddress && toTokenAddress &&
toTokenSymbol !== swapsDefaultToken.symbol && toTokenSymbol !== swapsDefaultToken.symbol &&
!contractExchangeRates[toTokenAddress] contractExchangeRates[toTokenAddress] === undefined
) { ) {
destinationTokenAddedForSwap = true; destinationTokenAddedForSwap = true;
await dispatch( await dispatch(

Loading…
Cancel
Save