Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Explicitly navigate to show credential after creation/update (#771)

Leendert de Borst043ce5c588f6
diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
index 0e49a793f..248848f30 100644
--- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
+++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx
@@ -173,13 +173,13 @@ export default function AddEditCredentialScreen() {
if (serviceUrl && !isEditMode) {
router.replace('/credentials/autofill-credential-created');
} else {
- if (isEditMode) {
- // If editing existing credential, go back to the detail screen via back.
- router.back();
- } else {
- // If creating new credential, go to the newly created credential via push.
- router.replace(`/credentials/${credentialToSave.Id}`);
- }
+ // First close the modal
+ router.dismiss();
+
+ // Then navigate after a short delay to ensure the modal has closed
+ setTimeout(() => {
+ router.push(`/credentials/${credentialToSave.Id}`);
+ }, 100);
// Show success toast
setTimeout(() => {