Skip to content

Commit

Permalink
run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Imod7 committed Nov 4, 2024
1 parent b04c28f commit 4a2cba0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/services/accounts/AccountsStakingInfoService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ export class AccountsStakingInfoService extends AbstractService {
claimedRewardsPerEra.length === 0
? 'unclaimed'
: claimedRewardsPerEra.length === pageCount
? 'claimed'
: claimedRewardsPerEra.length != pageCount
? 'partially claimed'
: 'undefined';
? 'claimed'
: claimedRewardsPerEra.length != pageCount
? 'partially claimed'
: 'undefined';
claimedRewards.push({ era: e, status: eraStatus });
} else if (erasStakers && erasStakers.total.toBigInt() > 0) {
// if erasStakers.total > 0, then the pageCount is always 1
Expand Down Expand Up @@ -290,17 +290,17 @@ export class AccountsStakingInfoService extends AbstractService {
claimedRewardsPerEra.length === 0
? 'unclaimed'
: claimedRewardsPerEra.length === pageCount
? 'claimed'
: claimedRewardsPerEra.length != pageCount
? await this.ErasStatusNominatorForValPartiallyClaimed(
? 'claimed'
: claimedRewardsPerEra.length != pageCount
? await this.ErasStatusNominatorForValPartiallyClaimed(
historicApi,
e,
validatorStash,
pageCount,
nominatorStash,
claimedRewardsPerEra,
)
: 'undefined';
)
: 'undefined';
claimedRewardsNom.push({ era: e, status: eraStatus });
break;
} else if (erasStakers && erasStakers.total.toBigInt() > 0) {
Expand Down
4 changes: 2 additions & 2 deletions src/services/test-helpers/mock/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export * from './addresses';
export * from './mockApi';
export * from './mockApiBlock18468942';
export * from './mockApiBlock19772575';
export * from './mockApiBlock22887036';
export * from './mockApiKusamaBlock22939322';
export * from './mockApiPolkadotBlock21157800';
export * from './mockApiBlock22887036';
export * from './mockAssetHubKusamaApi';
export * from './mockAssetHubKusamaApiBlock3356195';
export * from './mockAssetHubKusamaApiBlock6202603';
Expand All @@ -34,8 +34,8 @@ export * from './mockBlock13641102';
export * from './mockBlock18468942';
export * from './mockBlock19772575';
export * from './mockBlock21157800';
export * from './mockBlock22939322';
export * from './mockBlock21275366';
export * from './mockBlock22887036';
export * from './mockBlock22939322';
export * from './mockBlockHashes';
export * from './transactions';

0 comments on commit 4a2cba0

Please sign in to comment.