better nav on delete

This commit is contained in:
Hailey
2024-06-11 23:59:49 -07:00
parent 36717a99b2
commit 530a921ea5
+1 -5
View File
@@ -350,7 +350,6 @@ function WizardInner({
const newRkey = new AtUri(res.uri).rkey const newRkey = new AtUri(res.uri).rkey
// TODO hack?
setTimeout(() => { setTimeout(() => {
navigation.replace('StarterPack', { navigation.replace('StarterPack', {
name: currentAccount!.handle, name: currentAccount!.handle,
@@ -376,15 +375,12 @@ function WizardInner({
repo: currentAccount!.did, repo: currentAccount!.did,
rkey: new AtUri(initialListUri).rkey, rkey: new AtUri(initialListUri).rkey,
}) })
await agent.app.bsky.graph.starterpack.delete({ await agent.app.bsky.graph.starterpack.delete({
repo: currentAccount!.did, repo: currentAccount!.did,
rkey, rkey,
}) })
await invalidateQueries() await invalidateQueries()
navigation.popToTop()
navigation.replace('Profile', {name: currentAccount!.handle})
} catch (e) { } catch (e) {
Toast.show(_(msg`Failed to delete starter pack`)) Toast.show(_(msg`Failed to delete starter pack`))
} finally { } finally {