Be explicit in projection label (#3912)

This commit is contained in:
Jaco Greeff 2020-10-22 12:47:14 +02:00 committed by GitHub
parent 5b7c0f59b2
commit 50c6a16651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 6 deletions

View File

@ -110,11 +110,15 @@ function Contract ({ className, contract, index, onCall }: Props): React.ReactEl
)}
</td>
<td className='number together media--1100'>
{bestNumber && evictAt && (
<>
<BlockToTime blocks={evictAt.sub(bestNumber)} />
#{formatNumber(evictAt)}
</>
{bestNumber && (
evictAt
? (
<>
<BlockToTime blocks={evictAt.sub(bestNumber)} />
#{formatNumber(evictAt)}
</>
)
: t<string>('None')
)}
</td>
<td className='button'>

View File

@ -41,7 +41,7 @@ function Contracts ({ contracts: keyringContracts }: Props): React.ReactElement<
[t('contracts'), 'start'],
[undefined, undefined, 2],
[t('status'), 'start'],
[undefined, 'media--1100'],
[t('projection'), 'media--1100'],
[]
]);