about summary refs log tree commit diff
path: root/src/components/StarterPack/Wizard/WizardEditListDialog.tsx
diff options
context:
space:
mode:
authorChenyu Huang <itschenyu@gmail.com>2025-08-08 16:10:35 -0700
committerChenyu Huang <itschenyu@gmail.com>2025-08-19 15:28:37 -0700
commitf42b5831bb831e3b9f925730477a27e01d2b33f4 (patch)
treef0df61f8c22f91f7474646bea84023cef92be01f /src/components/StarterPack/Wizard/WizardEditListDialog.tsx
parent7182cd3d5e157d7ad80f2e5c4a458730c46939a0 (diff)
downloadvoidsky-f42b5831bb831e3b9f925730477a27e01d2b33f4.tar.zst
parameterize the initial profile for starter pack profile select wizard screen
Diffstat (limited to 'src/components/StarterPack/Wizard/WizardEditListDialog.tsx')
-rw-r--r--src/components/StarterPack/Wizard/WizardEditListDialog.tsx6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/StarterPack/Wizard/WizardEditListDialog.tsx b/src/components/StarterPack/Wizard/WizardEditListDialog.tsx
index 731323f7f..7c3d1a40a 100644
--- a/src/components/StarterPack/Wizard/WizardEditListDialog.tsx
+++ b/src/components/StarterPack/Wizard/WizardEditListDialog.tsx
@@ -48,7 +48,6 @@ export function WizardEditListDialog({
 }) {
   const {_} = useLingui()
   const t = useTheme()
-  const {currentAccount} = useSession()
   const initialNumToRender = useInitialNumToRender()
 
   const listRef = useRef<ListMethods>(null)
@@ -56,10 +55,7 @@ export function WizardEditListDialog({
   const getData = () => {
     if (state.currentStep === 'Feeds') return state.feeds
 
-    return [
-      profile,
-      ...state.profiles.filter(p => p.did !== currentAccount?.did),
-    ]
+    return [profile, ...state.profiles.filter(p => p.did !== profile.did)]
   }
 
   const renderItem = ({item}: ListRenderItemInfo<any>) =>