This commit is contained in:
Hailey
2024-06-12 20:06:20 -07:00
parent 92502eb948
commit a07cadd4d8
+17 -9
View File
@@ -89,23 +89,31 @@ export function Wizard({
} = useProfileQuery({did: currentAccount?.did})
if (
name &&
rkey &&
(!starterPack || (starterPack && listUri && !listItems))
(name &&
rkey &&
(!starterPack || (starterPack && listUri && !listItems))) ||
!profile
) {
return (
<ListMaybePlaceholder
isLoading={isLoadingDid || isLoadingStarterPack || isLoadingProfiles}
isError={isErrorDid || isErrorStarterPack || isErrorProfiles}
isLoading={
isLoadingDid ||
isLoadingStarterPack ||
isLoadingProfiles ||
isLoadingProfile
}
isError={
isErrorDid || isErrorStarterPack || isErrorProfiles || isErrorProfile
}
errorMessage={_(msg`Could not find that starter pack`)}
/>
)
} else if (!profile) {
} else if (name && rkey && starterPack?.creator.did !== currentAccount?.did) {
return (
<ListMaybePlaceholder
isLoading={isLoadingProfile}
isError={isErrorProfile}
errorMessage={_(msg`Could not load your profile`)}
isLoading={false}
isError={true}
errorMessage={_(msg`Could not find that starter pack`)}
/>
)
}