Skip to content

Commit

Permalink
remove redundant check
Browse files Browse the repository at this point in the history
  • Loading branch information
bee344 committed May 5, 2024
1 parent c04d281 commit 0dd2f54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/accounts/AccountsStakingPayoutsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export class AccountsStakingPayoutsService extends AbstractService {
let indexOfEra: number;
if (validatorLedger.legacyClaimedRewards && stakingVersion < 14) {
indexOfEra = validatorLedger.legacyClaimedRewards.indexOf(eraIndex);
} else if (validatorLedger.legacyClaimedRewards && stakingVersion >= 14) {
} else if (stakingVersion >= 14) {
indexOfEra = 0;
} else if ((validatorLedger as unknown as StakingLedger).claimedRewards) {
indexOfEra = (validatorLedger as unknown as StakingLedger).claimedRewards.indexOf(eraIndex);
Expand Down

0 comments on commit 0dd2f54

Please sign in to comment.