Skip to content

Commit

Permalink
Merge pull request #70 from dappforce/fix-staking
Browse files Browse the repository at this point in the history
Add check that rewards is not zero
  • Loading branch information
olehmell authored Feb 2, 2024
2 parents fbb9e9c + 6aaaeda commit fc42c8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/creatorStaking/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ export const getBackerRewards = async ({ account, spaceIds }: StakerRewardsProps
})

availableClaimResult?.forEach(([spaceId, claimCount]) => {
if(rewardsBySpaceId[spaceId] === 0) return

availableClaimsBySpaceId[spaceId] = claimCount
})

Expand Down

0 comments on commit fc42c8b

Please sign in to comment.