Empty heartbeats should not display (#2212)

This commit is contained in:
Jaco Greeff 2020-01-28 18:04:18 +01:00 committed by GitHub
parent f64ba0b9a6
commit 825da6cc7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,7 +166,7 @@ export default function Address ({ address, className, filter, filterName, hasQu
type='next'
/>
)}
{heartbeat && (
{heartbeat && (heartbeat.blockCount.gtn(0) || heartbeat.hasMessage) && (
<Badge
hover={t('Active with {{blocks}} blocks authored{{hasMessage}} heartbeat message', {
replace: {