From 1b5c71ceb8cf7714fa1e1eb17cdbee609420222c Mon Sep 17 00:00:00 2001 From: tarikgul Date: Mon, 11 Nov 2024 15:38:33 -0500 Subject: [PATCH] Fix isClaimed in api.derive.staking.{query, queryMulti} --- packages/api-derive/src/staking/stakerRewards.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/api-derive/src/staking/stakerRewards.ts b/packages/api-derive/src/staking/stakerRewards.ts index cee0c301d66..d575d8f1c5d 100644 --- a/packages/api-derive/src/staking/stakerRewards.ts +++ b/packages/api-derive/src/staking/stakerRewards.ts @@ -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]) }) );