From 59c3a8965c6d51a62f74e60a6770755e578d4716 Mon Sep 17 00:00:00 2001 From: Karl Kempe Date: Fri, 28 Jan 2022 17:37:05 +0000 Subject: [PATCH] Fix indexOf check --- react/src/swapper/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/src/swapper/helpers.ts b/react/src/swapper/helpers.ts index f83a461..8fc0355 100644 --- a/react/src/swapper/helpers.ts +++ b/react/src/swapper/helpers.ts @@ -31,7 +31,7 @@ export async function getEvmGasParametersForContract( const chainId = await getChainIdFromContract(contract); console.info(`getEvmGasParametersForContract... chainId: ${chainId}`); - if (EVM_EIP1559_CHAIN_IDS.indexOf(chainId)) { + if (EVM_EIP1559_CHAIN_IDS.indexOf(chainId) >= 0) { console.info( `eip1559? chainId: ${chainId}, eip1559 chains... ${JSON.stringify( EVM_EIP1559_CHAIN_IDS