diff --git a/packages/page-accounts/src/Sidebar/Identity.tsx b/packages/page-accounts/src/Sidebar/Identity.tsx index 5045ec9cd2..c08d584ab0 100644 --- a/packages/page-accounts/src/Sidebar/Identity.tsx +++ b/packages/page-accounts/src/Sidebar/Identity.tsx @@ -40,10 +40,10 @@ function Identity ({ address, identity }: Props): React.ReactElement | nu | nu {identity.judgements.length}  { identity.judgements.length - ? (identity.isGood - ? (identity.isKnownGood ? t('Known good') : t('Reasonable')) - : (identity.isErroneous ? t('Erroneous') : t('Low quality')) - ) + ? identity.isBad + ? identity.isErroneous + ? t('Erroneous') + : t('Low quality') + : identity.isKnownGood + ? t('Known good') + : t('Reasonable') : t('No judgments') } diff --git a/packages/react-components/src/AccountName.tsx b/packages/react-components/src/AccountName.tsx index c61ce2b73f..a9b36b8c52 100644 --- a/packages/react-components/src/AccountName.tsx +++ b/packages/react-components/src/AccountName.tsx @@ -118,12 +118,12 @@ function extractIdentity (address: string, identity: DeriveAccountRegistration): : identity.displayParent.replace(/[^\x20-\x7E]/g, '') ); const elem = createIdElem( - + {displayParent || displayName} {displayParent && {`/${displayName || ''}`}} , - isGood ? 'green' : (isBad ? 'red' : 'gray'), - identity.parent ? 'link' : (isGood ? 'check' : 'minus') + (isBad ? 'red' : (isGood ? 'green' : 'gray')), + identity.parent ? 'link' : (isGood && !isBad ? 'check' : 'minus') ); displayCache.set(address, elem);