mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix a condition for checking if a token should be added (#11127)
This commit is contained in:
parent
86b61a2fc2
commit
f9a52edb98
@ -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…
x
Reference in New Issue
Block a user