diff options
author | Chenyu Huang <itschenyu@gmail.com> | 2025-08-19 16:29:18 -0700 |
---|---|---|
committer | Chenyu Huang <itschenyu@gmail.com> | 2025-08-19 16:37:49 -0700 |
commit | 68e0a78f70478f1398f1fe65657257a9f2cd1d08 (patch) | |
tree | ce7488e06f31b6b378443f19c1277ba0fa5f58ba /src/screens | |
parent | e32f280f472a6793c10f23d6363e3577dfef39db (diff) | |
download | voidsky-68e0a78f70478f1398f1fe65657257a9f2cd1d08.tar.zst |
loading state
Diffstat (limited to 'src/screens')
-rw-r--r-- | src/screens/StarterPack/Wizard/index.tsx | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index a871a68a4..e823f8bb7 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -231,12 +231,10 @@ function WizardInner({ Image.prefetch([getStarterPackOgCard(currentProfile!.did, rkey)]) dispatch({type: 'SetProcessing', processing: false}) - // If launched from ProfileMenu dialog, notify the dialog and go back if (fromDialog) { navigation.goBack() onSuccess?.() } else { - // Original behavior for other entry points navigation.replace('StarterPack', { name: profile!.handle, rkey, @@ -246,19 +244,13 @@ function WizardInner({ } const onSuccessEdit = () => { - // If launched from ProfileMenu dialog, go back to stay on profile page - if (fromDialog) { + if (navigation.canGoBack()) { navigation.goBack() } else { - // Original behavior for other entry points - if (navigation.canGoBack()) { - navigation.goBack() - } else { - navigation.replace('StarterPack', { - name: profile!.handle, - rkey: parsed!.rkey, - }) - } + navigation.replace('StarterPack', { + name: currentAccount!.handle, + rkey: parsed!.rkey, + }) } } |