Tidy accounts loading (#4643)
This commit is contained in:
parent
9b2439544a
commit
9b45ee59c6
@ -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
|
||||
<BannerExtension />
|
||||
<BannerClaims />
|
||||
<Table
|
||||
empty={(!hasAccounts || (!isLoading && sortedAccountsWithDelegation)) && t<string>("You don't have any accounts. Some features are currently hidden and will only become available once you have accounts.")}
|
||||
empty={!isLoading && sortedAccountsWithDelegation && t<string>("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}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user