[Glitch] Featured tab: Check if collections are enabled for loading status
Port d9ea631d5911ebfe090e0d1ea1b11441aa58c918 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
ff80786d2e
commit
55e2570703
@ -88,7 +88,8 @@ const AccountFeatured: React.FC<{ multiColumn: boolean }> = ({
|
|||||||
|
|
||||||
const hasFeaturedAccounts = !featuredAccountIds.isEmpty();
|
const hasFeaturedAccounts = !featuredAccountIds.isEmpty();
|
||||||
|
|
||||||
const isLoading = !accountId || collectionsLoadStatus !== 'idle';
|
const isLoading =
|
||||||
|
!accountId || (collectionsEnabled && collectionsLoadStatus !== 'idle');
|
||||||
|
|
||||||
if (accountId === null) {
|
if (accountId === null) {
|
||||||
return <BundleColumnError multiColumn={multiColumn} errorType='routing' />;
|
return <BundleColumnError multiColumn={multiColumn} errorType='routing' />;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user