Skip to content

Commit

Permalink
hotfix: check positionsInfo (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
vuonghuuhung authored Aug 10, 2024
1 parent 8f66cdf commit d381497
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/Pool-V3/components/PoolList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div className={styles.poolList}>
Expand Down

0 comments on commit d381497

Please sign in to comment.