about summary refs log tree commit diff
path: root/src/components/StarterPack/Wizard/WizardListCard.tsx
diff options
context:
space:
mode:
authorjim <310223+jimmylee@users.noreply.github.com>2025-08-25 23:23:20 -0700
committerGitHub <noreply@github.com>2025-08-25 23:23:20 -0700
commitbc8e3ba30b0dd679edf88f0f6038f012b909901f (patch)
treecbd07bca40c9b6d9f79450e07466b8c0c929b6a1 /src/components/StarterPack/Wizard/WizardListCard.tsx
parente4c5fb7de5b0083ee833acbd039312ce64a83501 (diff)
parentf84a75669157ed5d2dab2a426d9ff5fefb86a9bb (diff)
downloadvoidsky-bc8e3ba30b0dd679edf88f0f6038f012b909901f.tar.zst
Merge pull request #8806 from internet-development/binaryfiddler/starter-pack-part2
Starter pack dialog implementations
Diffstat (limited to 'src/components/StarterPack/Wizard/WizardListCard.tsx')
-rw-r--r--src/components/StarterPack/Wizard/WizardListCard.tsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/components/StarterPack/Wizard/WizardListCard.tsx b/src/components/StarterPack/Wizard/WizardListCard.tsx
index fbaa185a9..09c265d78 100644
--- a/src/components/StarterPack/Wizard/WizardListCard.tsx
+++ b/src/components/StarterPack/Wizard/WizardListCard.tsx
@@ -131,10 +131,13 @@ export function WizardProfileCard({
 }) {
   const {currentAccount} = useSession()
 
-  const isMe = profile.did === currentAccount?.did
-  const included = isMe || state.profiles.some(p => p.did === profile.did)
+  // Determine the "main" profile for this starter pack - either targetDid or current account
+  const targetProfileDid = state.targetDid || currentAccount?.did
+  const isTarget = profile.did === targetProfileDid
+  const included = isTarget || state.profiles.some(p => p.did === profile.did)
   const disabled =
-    isMe || (!included && state.profiles.length >= STARTER_PACK_MAX_SIZE - 1)
+    isTarget ||
+    (!included && state.profiles.length >= STARTER_PACK_MAX_SIZE - 1)
   const moderationUi = moderateProfile(profile, moderationOpts).ui('avatar')
   const displayName = profile.displayName
     ? sanitizeDisplayName(profile.displayName)
@@ -144,7 +147,7 @@ export function WizardProfileCard({
     if (disabled) return
 
     Keyboard.dismiss()
-    if (profile.did === currentAccount?.did) return
+    if (profile.did === targetProfileDid) return
 
     if (!included) {
       dispatch({type: 'AddProfile', profile})