Fix Babe availability check (#3900)

This commit is contained in:
Jaco Greeff 2020-10-19 16:41:30 +02:00 committed by GitHub
parent 8203b1fe2e
commit d2a4ed7f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ function StakingUnbonding ({ className = '', stakingInfo }: Props): React.ReactE
>
<div>{t<string>('Unbonding {{value}}', { replace: { value: formatBalance(value, { forceUnit: '-' }) } })}</div>
<div className='faded'>
{api.consts.babe.epochDuration
{api.consts.babe?.epochDuration
? (
<BlockToTime
blocks={blocks}