diff --git a/packages/app-staking/src/Actions/Account/index.tsx b/packages/app-staking/src/Actions/Account/index.tsx index e6a7f80199..cb032a6714 100644 --- a/packages/app-staking/src/Actions/Account/index.tsx +++ b/packages/app-staking/src/Actions/Account/index.tsx @@ -208,7 +208,7 @@ class Account extends React.PureComponent { withValidatorPrefs={isStashValidating} /> - {nominees && nominees.length && ( + {nominees && nominees.length !== 0 && (
{nominees.map((nomineeId, index): React.ReactNode => ( diff --git a/packages/app-staking/src/Overview/Address.tsx b/packages/app-staking/src/Overview/Address.tsx index 7ec25781f3..e9e7089ff4 100644 --- a/packages/app-staking/src/Overview/Address.tsx +++ b/packages/app-staking/src/Overview/Address.tsx @@ -132,8 +132,9 @@ class Address extends React.PureComponent { key={stashId || controllerId || undefined} value={stashId || address} withBalance={{ bonded }} + withValidatorPrefs={{ validatorPayment: true }} > - {nominators.length && ( + {nominators.length !== 0 && (
{t('Nominators ({{count}})', { diff --git a/packages/react-components/src/AddressInfo.tsx b/packages/react-components/src/AddressInfo.tsx index 54294f2d0c..5ae8571426 100644 --- a/packages/react-components/src/AddressInfo.tsx +++ b/packages/react-components/src/AddressInfo.tsx @@ -154,10 +154,9 @@ function renderValidatorPrefs ({ staking_info, t, withValidatorPrefs = false }: return null; } - // start with a spacer return ( <> -
+
{validatorPrefsDisplay.unstakeThreshold && (staking_info.validatorPrefs as ValidatorPrefs0to145).unstakeThreshold && ( <>
);