diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx
index 488e7eda6b..952b8632ce 100644
--- a/src/screens/StarterPack/Wizard/index.tsx
+++ b/src/screens/StarterPack/Wizard/index.tsx
@@ -68,12 +68,12 @@ export function Wizard({
isLoading: isLoadingDid,
isError: isErrorDid,
} = useResolveDidQuery(name)
+
const {
data: starterPack,
isLoading: isLoadingStarterPack,
isError: isErrorStarterPack,
} = useStarterPackQuery({did, rkey})
-
const listUri = starterPack?.list?.uri
const {
@@ -89,12 +89,10 @@ export function Wizard({
isError: isErrorProfile,
} = useProfileQuery({did: currentAccount?.did})
- if (
- (name &&
- rkey &&
- (!starterPack || (starterPack && listUri && !listItems))) ||
- !profile
- ) {
+ const isEdit = Boolean(name && rkey)
+ const isReady = (!isEdit || (isEdit && starterPack && listItems)) && profile
+
+ if (!isReady) {
return (
)
- } else if (name && rkey && starterPack?.creator.did !== currentAccount?.did) {
+ } else if (isEdit && starterPack?.creator.did !== currentAccount?.did) {
return (