From fbd182605966bd686835d6df1b5430551da6b4ee Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Sun, 6 Sep 2020 11:32:44 +0200 Subject: [PATCH] Fix envelope status display (#3623) --- packages/page-staking/src/Overview/Address/Status.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/page-staking/src/Overview/Address/Status.tsx b/packages/page-staking/src/Overview/Address/Status.tsx index 41040f4a01..c0a3ca53ae 100644 --- a/packages/page-staking/src/Overview/Address/Status.tsx +++ b/packages/page-staking/src/Overview/Address/Status.tsx @@ -17,6 +17,8 @@ interface Props { } function Status ({ isElected, isMain, numNominators, onlineCount, onlineMessage }: Props): React.ReactElement { + const blockCount = onlineCount && onlineCount.toNumber(); + return ( <> {isElected @@ -29,11 +31,11 @@ function Status ({ isElected, isMain, numNominators, onlineCount, onlineMessage : } {isMain && ( - !!onlineCount || onlineMessage + blockCount || onlineMessage ? ( } + info={blockCount || } /> ) :