Don't show countdown on fully vested (#3809)

This commit is contained in:
Jaco Greeff 2020-10-02 09:54:02 +02:00 committed by GitHub
parent 6cb3fe48ea
commit 0950f9f78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,10 +272,14 @@ function renderBalances (props: Props, allAccounts: string[], bestNumber: BlockN
<div>
{formatBalance(balancesAll.vestedClaimable, { forceUnit: '-' })}
<div className='faded'>{t('available to be unlocked')}</div>
<BlockToTime blocks={balancesAll.vestingEndBlock.sub(bestNumber)} />
<div className='faded'>{t('until block')} {formatNumber(balancesAll.vestingEndBlock)}</div>
{formatBalance(balancesAll.vestingPerBlock)}
<div className='faded'>{t('per block')}</div>
{bestNumber.lt(balancesAll.vestingEndBlock) && (
<>
<BlockToTime blocks={balancesAll.vestingEndBlock.sub(bestNumber)} />
<div className='faded'>{t('until block')} {formatNumber(balancesAll.vestingEndBlock)}</div>
{formatBalance(balancesAll.vestingPerBlock)}
<div className='faded'>{t('per block')}</div>
</>
)}
</div>
}
trigger={`${address}-vested-trigger`}