From 2b0e46e0eb132c943bb0b765e20683e5903923f3 Mon Sep 17 00:00:00 2001 From: Anakorn Tata Kyavatanakij Date: Tue, 3 Dec 2019 03:41:39 +0800 Subject: [PATCH] fix SummaryBar (#1981) --- packages/app-123code/src/SummaryBar.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app-123code/src/SummaryBar.tsx b/packages/app-123code/src/SummaryBar.tsx index e9cee4c564..a90ed0cb01 100644 --- a/packages/app-123code/src/SummaryBar.tsx +++ b/packages/app-123code/src/SummaryBar.tsx @@ -3,7 +3,7 @@ // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. -import { AccountId } from '@polkadot/types/interfaces'; +import { DeriveStakingValidators } from '@polkadot/api-derive/types'; import { BareProps, I18nProps } from '@polkadot/react-components/types'; import BN from 'bn.js'; @@ -19,7 +19,7 @@ interface Props extends BareProps, I18nProps { balances_totalIssuance?: BN; chain_bestNumber?: BN; chain_bestNumberLag?: BN; - staking_validators?: AccountId[]; + staking_validators?: DeriveStakingValidators; } function SummaryBar ({ balances_totalIssuance, chain_bestNumber, chain_bestNumberLag, staking_validators }: Props): React.ReactElement { @@ -35,14 +35,14 @@ function SummaryBar ({ balances_totalIssuance, chain_bestNumber, chain_bestNumbe {systemChain} - {api.runtimeVersion.implName} v{api.runtimeVersion.implVersion} + {api.runtimeVersion.implName} v{api.runtimeVersion.implVersion.toString(10)} {formatNumber(chain_bestNumber)} ({formatNumber(chain_bestNumberLag)} lag) {staking_validators && ( { - staking_validators.map((accountId, index): React.ReactNode => ( + staking_validators.validators.map((accountId, index): React.ReactNode => ( )) }