From d3814970238e49ae12ddd7a233d60240f1c54519 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C6=B0=C6=A1ng=20H=E1=BB=AFu=20H=C6=B0ng?= <92346765+vuonghuuhung@users.noreply.github.com> Date: Sat, 10 Aug 2024 16:16:12 +0700 Subject: [PATCH] hotfix: check positionsInfo (#915) --- src/pages/Pool-V3/components/PoolList/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Pool-V3/components/PoolList/index.tsx b/src/pages/Pool-V3/components/PoolList/index.tsx index cc7496fba..fa02286c0 100644 --- a/src/pages/Pool-V3/components/PoolList/index.tsx +++ b/src/pages/Pool-V3/components/PoolList/index.tsx @@ -100,10 +100,10 @@ const PoolList = () => { const res = await fetchPoolAprInfo(poolKeys, prices, poolPositionInfo, feeDailyData); setAprInfo(res); }; - if (dataPool.length && prices && poolPositionInfo.length) { + if (dataPool.length && prices && Object.keys(poolPositionInfo).length) { getAPRInfo(); } - }, [dataPool.length, prices, poolPositionInfo.length]); + }, [dataPool, prices, Object.keys(poolPositionInfo).length]); return (