1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix missing chain id on preview (#1305)

* fix missing chain id when user is not connected

* remove log
This commit is contained in:
EnzoVezzaro 2022-04-04 10:56:05 -04:00 committed by GitHub
parent 48c3190fed
commit 4ded93afed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,