From 207cde27a56e817f51ceb3aa6ec2a36900715f16 Mon Sep 17 00:00:00 2001 From: Daniel <80175477+dan437@users.noreply.github.com> Date: Tue, 18 May 2021 20:16:17 +0200 Subject: [PATCH] Fix a condition for checking if a token should be added (#11127) --- ui/ducks/swaps/swaps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/ducks/swaps/swaps.js b/ui/ducks/swaps/swaps.js index a08424869..34f7a84fe 100644 --- a/ui/ducks/swaps/swaps.js +++ b/ui/ducks/swaps/swaps.js @@ -443,7 +443,7 @@ export const fetchQuotesAndSetQuoteState = ( if ( toTokenAddress && toTokenSymbol !== swapsDefaultToken.symbol && - !contractExchangeRates[toTokenAddress] + contractExchangeRates[toTokenAddress] === undefined ) { destinationTokenAddedForSwap = true; await dispatch(