diff --git a/src/components/@shared/PoolTransactions/index.tsx b/src/components/@shared/PoolTransactions/index.tsx index de9b18ea2..d45760b66 100644 --- a/src/components/@shared/PoolTransactions/index.tsx +++ b/src/components/@shared/PoolTransactions/index.tsx @@ -187,7 +187,7 @@ export default function PoolTransactions({ poolTransactions.push({ ...data[i], networkId: !minimal - ? getAsset(ddoList, data[i].pool.datatoken.id).chainId + ? getAsset(ddoList, data[i].pool.datatoken.id)?.chainId : poolChainId, asset: !minimal ? getAsset(ddoList, data[i].pool.datatoken.id) : null }) diff --git a/src/components/Profile/History/PoolShares/_utils.ts b/src/components/Profile/History/PoolShares/_utils.ts index 7d510602a..c864f765d 100644 --- a/src/components/Profile/History/PoolShares/_utils.ts +++ b/src/components/Profile/History/PoolShares/_utils.ts @@ -39,7 +39,7 @@ export async function getAssetsFromPoolShares( assetList.push({ poolShare: data[i], userLiquidity, - networkId: getAsset(ddoList, data[i].pool.datatoken.address).chainId, + networkId: getAsset(ddoList, data[i].pool.datatoken.address)?.chainId, createTime: data[i].pool.createdTimestamp, asset: getAsset(ddoList, data[i].pool.datatoken.address) })