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
// TODO hack?
setTimeout(() => {
navigation.replace('StarterPack', {
name: currentAccount!.handle,
@@ -376,15 +375,12 @@ function WizardInner({
repo: currentAccount!.did,
rkey: new AtUri(initialListUri).rkey,
})
await agent.app.bsky.graph.starterpack.delete({
repo: currentAccount!.did,
rkey,
})
await invalidateQueries()
navigation.replace('Profile', {name: currentAccount!.handle})
navigation.popToTop()
} catch (e) {
Toast.show(_(msg`Failed to delete starter pack`))
} finally {