Fix update countdown timer (#4979)

This commit is contained in:
Jaco Greeff 2021-03-30 12:46:35 +03:00 committed by GitHub
parent 6bd8c1d151
commit 96918559c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ function Parachain ({ bestNumber, className = '', id, lastBacked, lastInclusion,
<td className='number media--1300'>
{paraInfo.updateAt && bestNumber && (
<>
<BlockToTime value={bestNumber.sub(paraInfo.updateAt)} />
<BlockToTime value={paraInfo.updateAt.sub(bestNumber)} />
#{formatNumber(paraInfo.updateAt)}
</>
)}