diff --git a/src/state/farms/elasticv2/hooks.ts b/src/state/farms/elasticv2/hooks.ts index bb95fddf1a..653d5f6e5e 100644 --- a/src/state/farms/elasticv2/hooks.ts +++ b/src/state/farms/elasticv2/hooks.ts @@ -23,10 +23,14 @@ export const useElasticFarmsV2 = () => { export const useUserFarmV2Info = (farmAddress: string, fId: number): UserFarmV2Info[] => { const { userInfo } = useElasticFarmsV2() + console.log(userInfo) return useMemo( () => userInfo?.filter( - item => item.fId === fId && item.farmAddress === farmAddress && item.liquidity.toString() !== '0', + item => + item.fId === fId && + item.farmAddress === farmAddress && + (item.liquidity.toString() !== '0' ? true : item.unclaimedRewards.some(item => item.greaterThan('0'))), ) || [], [fId, userInfo, farmAddress], )