Skip to content

Commit

Permalink
Fix isClaimed in api.derive.staking.{query, queryMulti}
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Nov 11, 2024
1 parent 8cc1038 commit 1b5c71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-derive/src/staking/stakerRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function filterRewards (eras: EraIndex[], valInfo: [string, DeriveStakingQuery][
.filter(({ validators }) => Object.keys(validators).length !== 0)
.map((reward) =>
objectSpread({}, reward, {
isClaimed: filter.some((f) => reward.era.eq(f)),
isClaimed: reward.isClaimed,
nominators: reward.nominating.filter((n) => reward.validators[n.validatorId])
})
);
Expand Down

0 comments on commit 1b5c71c

Please sign in to comment.