Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Tweak discard changes logic on explicit cancel button press (#1379)
Leendert de Borste1c5b5f7530b
diff --git a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsxindex 27bd4dbe0..898138b0d 100644--- a/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx+++ b/apps/mobile-app/app/(tabs)/credentials/add-edit.tsx@@ -697,7 +697,10 @@ export default function AddEditCredentialScreen() : React.ReactNode {/*** Discard button handler.*/- onPress: () : void => router.back(),+ onPress: () : void => {+ setHasUnsavedChanges(false);+ router.back();+ },},]);