diff --git a/packages/apps/public/locales/ar/translation.json b/packages/apps/public/locales/ar/translation.json index 75556e1f1e..4aeba05c89 100644 --- a/packages/apps/public/locales/ar/translation.json +++ b/packages/apps/public/locales/ar/translation.json @@ -77,7 +77,7 @@ "Aura": "هالة", "Authorize transaction": "السماح بالمعاملة", "Aye": "نعم", - "Aye {{counter}}": "نعم {{عداد}}", + "Aye {{count}}": "نعم {{عداد}}", "Aye, I approve": "نعم, أنا أوافق", "Aye, I can support this": "نعم ، يمكنني دعم هذا", "Aye, I support this": "نعم ، أنا أدعم هذا", @@ -1278,4 +1278,4 @@ "{{threshold}}, not passing": "سقف}}، لا يتم تمريره}}", "{{threshold}}, passing": "سقف}}، يتم تمريره}}", "{{value}}x voting balance, locked for {{lock}}x enactment ({{period}} days)": "({{قفل}} (تاريخ إصدار {{أيام}}x رصيد التصويت، مقفل لـ x {{قيمة }}" -} \ No newline at end of file +} diff --git a/packages/page-council/src/Motions/Voters.tsx b/packages/page-council/src/Motions/Voters.tsx index 1cbea8ee45..4efb2e6b4c 100644 --- a/packages/page-council/src/Motions/Voters.tsx +++ b/packages/page-council/src/Motions/Voters.tsx @@ -19,7 +19,7 @@ interface Props { function Voters ({ isAye, members, threshold, votes }: Props): React.ReactElement | null { const { t } = useTranslation(); - const counter = useMemo( + const count = useMemo( (): string => { const num = threshold.toNumber(); const max = isAye @@ -33,7 +33,7 @@ function Voters ({ isAye, members, threshold, votes }: Props): React.ReactElemen [isAye, members, threshold, votes] ); - if (!counter || !votes.length) { + if (!count || !votes.length) { return null; } @@ -41,8 +41,8 @@ function Voters ({ isAye, members, threshold, votes }: Props): React.ReactElemen ('Aye {{counter}}', { replace: { counter } }) - : t('Nay {{counter}}', { replace: { counter } }) + ? t('Aye {{count}}', { replace: { count } }) + : t('Nay {{count}}', { replace: { count } }) } > {votes.map((address): React.ReactNode => ( diff --git a/packages/page-treasury/src/Tips/TipCreate.tsx b/packages/page-treasury/src/Tips/TipCreate.tsx index 47ee76397b..dc260a7332 100644 --- a/packages/page-treasury/src/Tips/TipCreate.tsx +++ b/packages/page-treasury/src/Tips/TipCreate.tsx @@ -29,11 +29,7 @@ function TipCreate ({ members, refresh }: Props): React.ReactElement { const hasReason = reason?.length >= MIN_REASON_LEN && reason?.length <= MAX_REASON_LEN; useEffect((): void => { - setIsMember( - accountId - ? members.includes(accountId) - : false - ); + setIsMember(members.includes(accountId || '')); }, [accountId, members]); return ( @@ -110,7 +106,7 @@ function TipCreate ({ members, refresh }: Props): React.ReactElement { ('Propose tip')} onStart={toggleOpen} onSuccess={refresh} diff --git a/packages/react-components/src/AddressInfo.tsx b/packages/react-components/src/AddressInfo.tsx index 88d271e9e2..bdec091db8 100644 --- a/packages/react-components/src/AddressInfo.tsx +++ b/packages/react-components/src/AddressInfo.tsx @@ -275,7 +275,7 @@ function renderBalances (props: Props, allAccounts: string[], bestNumber: BlockN {formatBalance(balancesAll.vestingPerBlock)}
{t('per block')}
-
{`${t('until block')} ${formatNumber(balancesAll.vestingEndBlock)}`}
+ {`${t('until block')} ${formatNumber(balancesAll.vestingEndBlock)}`}