Skip to content

Commit

Permalink
fix: Remove waiting on era status
Browse files Browse the repository at this point in the history
  • Loading branch information
gaquarius committed Jan 23, 2024
1 parent db4cb99 commit a1120d8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/library/ListItem/Labels/EraStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2023 @paritytech/polkadot-staking-dashboard authors & contributors
// SPDX-License-Identifier: GPL-3.0-only

import { capitalizeFirstLetter, planckToUnit } from '@polkadot-cloud/utils';
import { planckToUnit } from '@polkadot-cloud/utils';
import { useTranslation } from 'react-i18next';
import { useStaking } from 'contexts/Staking';
import { useUi } from 'contexts/UI';
Expand All @@ -23,11 +23,9 @@ export const EraStatus = ({ noMargin, status, totalStake }: EraStatusProps) => {
<h5>
{isSyncing || erasStakersSyncing
? t('syncing')
: validatorStatus !== 'waiting'
? `${t('listItemActive')} / ${planckToUnit(totalStake, units)
.integerValue()
.toFormat()} ${unit}`
: capitalizeFirstLetter(t(`${validatorStatus}`) ?? '')}
: `${t('listItemActive')} / ${planckToUnit(totalStake, units)
.integerValue()
.toFormat()} ${unit}`}
</h5>
</ValidatorStatusWrapper>
);
Expand Down

0 comments on commit a1120d8

Please sign in to comment.