From 5176a299551e57fb63711727635620c8f0331812 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Fri, 15 May 2020 00:55:26 +0800 Subject: [PATCH] Change copy for stake status --- explorer/src/components/account/StakeAccountCards.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/explorer/src/components/account/StakeAccountCards.tsx b/explorer/src/components/account/StakeAccountCards.tsx index 369fdf49d2..f776b70b16 100644 --- a/explorer/src/components/account/StakeAccountCards.tsx +++ b/explorer/src/components/account/StakeAccountCards.tsx @@ -97,6 +97,14 @@ function OverviewCard({ function DelegationCard({ stakeAccount }: { stakeAccount: StakeAccount }) { const { stake } = stakeAccount; + const displayStatus = () => { + let status = stakeAccount.displayState(); + if (status !== "Delegated") { + status = "Not delegated"; + } + return status; + }; + return (
@@ -107,7 +115,7 @@ function DelegationCard({ stakeAccount }: { stakeAccount: StakeAccount }) { Status - {stakeAccount.displayState()} + {displayStatus()} {stake && (