From 4ded93afed5c2c4faad5cc02fd3a2f81b1da5c23 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Mon, 4 Apr 2022 10:56:05 -0400 Subject: [PATCH] fix missing chain id on preview (#1305) * fix missing chain id when user is not connected * remove log --- src/@context/Pool/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/@context/Pool/index.tsx b/src/@context/Pool/index.tsx index 383cdfea0..fb171e6d1 100644 --- a/src/@context/Pool/index.tsx +++ b/src/@context/Pool/index.tsx @@ -133,7 +133,7 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement { setPoolInfo(newPoolInfo) LoggerInstance.log('[pool] Created new pool info:', newPoolInfo) - }, [asset.chainId, chainId, poolData, web3]) + }, [asset?.chainId, chainId, poolData, web3]) // // 2 Pool Creator Info @@ -153,8 +153,6 @@ function PoolProvider({ children }: { children: ReactNode }): ReactElement { .mul(100) .toFixed(2) - console.log(ownerPoolShares, poolShare) - const newPoolOwnerInfo = { liquidity: new Decimal(ownerPoolShares), // liquidity in base token, values from from `calcSingleOutGivenPoolIn` method poolShares: ownerPoolShares,