From e8f1ea5a895c6b6fccdb3b84ff62a399e62849d3 Mon Sep 17 00:00:00 2001 From: Jay Date: Wed, 30 Mar 2022 00:45:51 +0800 Subject: [PATCH] fix: maybe there's not a conviction of direct voting (#7262) * fix: maybe there's not a conviction of direct voting * fix: conviction exist check --- packages/react-components/src/DemocracyLocks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/src/DemocracyLocks.tsx b/packages/react-components/src/DemocracyLocks.tsx index ffd9a90889..1c524632c2 100644 --- a/packages/react-components/src/DemocracyLocks.tsx +++ b/packages/react-components/src/DemocracyLocks.tsx @@ -51,7 +51,7 @@ function groupLocks (t: TFunction, bestNumber: BN, locks: Partial { const isCountdown = blocks.gt(BN_ZERO); const header = referendumId && vote - ?
#{referendumId.toString()} {formatBalance(balance, { forceUnit: '-' })} {vote.conviction.toString()}{isDelegated && '/d'}
+ ?
#{referendumId.toString()} {formatBalance(balance, { forceUnit: '-' })} {vote.conviction?.toString()}{isDelegated && '/d'}
:
{t('Prior locked voting')}
; const prev = sorted.length ? sorted[sorted.length - 1] : null;