1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

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

This commit is contained in:
Daniel 2021-05-18 20:16:17 +02:00 committed by GitHub
parent 86b61a2fc2
commit f9a52edb98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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