Skip to content

Commit

Permalink
fix filter for dual farms
Browse files Browse the repository at this point in the history
  • Loading branch information
totop716 committed Jul 26, 2022
1 parent 1b2bb61 commit 85a99f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/stake/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ export function useDualStakingInfo(
const info = useMemo(
() =>
Object.values(dualStakingRewardsInfo[chainId])
.filter((x) => x.ended === filter?.isEndedFarm)
.filter((x) => (filter?.isEndedFarm ? x.ended : !x.ended))
.slice(startIndex, endIndex)
.filter((stakingRewardInfo) =>
pairToFilterBy === undefined || pairToFilterBy === null
Expand Down

0 comments on commit 85a99f5

Please sign in to comment.