Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin-Radecki committed Feb 17, 2025
1 parent 4cf4c89 commit ecf5711
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/page-staking/src/Suspensions/Suspensions.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2025 @polkadot/app-staking authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type {u8, u16, Vec, u32} from '@polkadot/types';
import type { u8, u16, u32, Vec } from '@polkadot/types';
import type { EraIndex, EventRecord, Hash, SessionIndex } from '@polkadot/types/interfaces';
import type { Perbill } from '@polkadot/types/interfaces/runtime';
import type { Codec } from '@polkadot/types/types';
Expand Down Expand Up @@ -56,7 +56,7 @@ function parseEvents (events: EventRecord[], productionBanConfigPeriod: number,
address,
era,
suspensionLiftsInEra: era + productionBanConfigPeriod,
suspensionReason: reason.otherReason.toString(),
suspensionReason: reason.otherReason.toString()
};
} else if (reason.insufficientProduction !== undefined) {
return {
Expand All @@ -70,7 +70,7 @@ function parseEvents (events: EventRecord[], productionBanConfigPeriod: number,
address,
era,
suspensionLiftsInEra: era + finalizationBanConfigPeriod,
suspensionReason: `Insufficient finalization in at least ${reason.insufficientFinalization.toString} sessions`
suspensionReason: `Insufficient finalization in at least ${reason.insufficientFinalization.toString()} sessions`
};
} else {
return {
Expand Down

0 comments on commit ecf5711

Please sign in to comment.