Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

clear old values from vault on close

ammarahm-ed112de64d11f3
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index 7650d76a4..26f03c5cd 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -78,6 +78,8 @@ export class VaultDialog extends Component {
close = () => {
updateEvent({type: ACTIONS.NOTES});
+ this.password = null;
+ this.confirmPassword = null;
this.setState({
visible: false,
note: {},
@@ -87,6 +89,7 @@ export class VaultDialog extends Component {
share: false,
novault: false,
deleteNote: false,
+ passwordsDontMatch: false,
});
};