From 9b45ee59c6b667a0d9bd359da0f2200c4220a24b Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Wed, 10 Feb 2021 12:22:30 +0100 Subject: [PATCH] Tidy accounts loading (#4643) --- packages/page-accounts/src/Accounts/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/page-accounts/src/Accounts/index.tsx b/packages/page-accounts/src/Accounts/index.tsx index becfc4ed36..64e1e74627 100644 --- a/packages/page-accounts/src/Accounts/index.tsx +++ b/packages/page-accounts/src/Accounts/index.tsx @@ -90,10 +90,6 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen }, [allAccounts, favorites]); useEffect(() => { - if (api.query.democracy?.votingOf && !delegations?.length) { - return; - } - setSortedAccountsWithDelegation( sortedAccounts?.map((account, index) => { let delegation: Delegation | undefined; @@ -233,7 +229,7 @@ function Overview ({ className = '', onStatusChange }: Props): React.ReactElemen ("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")} + empty={!isLoading && sortedAccountsWithDelegation && t("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")} filter={filter} footer={footer} header={headerRef.current}