Update ListNominees.tsx (#7948)

* Update ListNominees.tsx

useTranslation format is not correct in the tooltip while a validator is oversubscribed

* Update ListNominees.tsx

* Update ListNominees.tsx
This commit is contained in:
Kami 2022-08-01 12:41:52 +04:30 committed by GitHub
parent bb1d3cf1b6
commit 48784489a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ function ListNominees ({ nominating, stashId }: Props): React.ReactElement<Props
{renOver && (
<ExpanderScroll
className='stakeOver'
help={t<string>('These validators are active but only the top {{max}} nominators by backing stake will be receiving rewards. The nominating stash is not one of those to be rewarded in the current era.', { replace: api.consts.staking?.maxNominatorRewardedPerValidator?.toString() })}
help={t<string>('These validators are active but only the top {{max}} nominators by backing stake will be receiving rewards. The nominating stash is not one of those to be rewarded in the current era.', { replace: { max: api.consts.staking?.maxNominatorRewardedPerValidator?.toString() } })}
renderChildren={renOver[1]}
summary={t<string>('Oversubscribed nominations ({{count}})', { replace: { count: renOver[0] } })}
/>