Skip to content

Commit

Permalink
Empty heartbeats should not display (polkadot-js#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr authored and jordy25519 committed Feb 20, 2020
1 parent 9f4efbb commit ad00bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-staking/src/Overview/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit ad00bc9

Please sign in to comment.