diff --git a/packages/react-components/src/AccountName.tsx b/packages/react-components/src/AccountName.tsx index 56192c6d07..7477473f4b 100644 --- a/packages/react-components/src/AccountName.tsx +++ b/packages/react-components/src/AccountName.tsx @@ -127,13 +127,26 @@ function AccountName ({ children, className, defaultName, label, onClick, overri if (api.query.identity?.identityOf) { if (identity?.display) { - const isGood = identity.judgements.some(([, judgement]): boolean => judgement.isKnownGood || judgement.isReasonable); - const isBad = identity.judgements.some(([, judgement]): boolean => judgement.isErroneous || judgement.isLowQuality); - - // FIXME This needs to be i18n, with plurals + const judgements = identity.judgements.filter(([, judgement]): boolean => !judgement.isFeePaid); + const isGood = judgements.some(([, judgement]): boolean => judgement.isKnownGood || judgement.isReasonable); + const isBad = judgements.some(([, judgement]): boolean => judgement.isErroneous || judgement.isLowQuality); + const waitCount = identity.judgements.length - judgements.length; const hover = (