Skip to content

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

fix dialog not showing

ammarahm-edd41c5f6dd8da
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index b30639ef8..32d7516c7 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -106,7 +106,11 @@ export class VaultDialog extends Component {
close = () => {
if (this.state.loading) {
- ToastEvent.show('Please wait and do not close the app.', 'success');
+ ToastEvent.show(
+ 'Please wait and do not close the app.',
+ 'success',
+ 'local',
+ );
return;
}
updateEvent({type: Actions.NOTES});
@@ -128,6 +132,9 @@ export class VaultDialog extends Component {
onPress = async () => {
if (this.state.loading) return;
+ if (!this.password) {
+ ToastEvent.show('You must fill all the fields.', 'error', 'local');
+ }
if (!this.state.novault) {
if (this.password && this.password.length < 3) {
ToastEvent.show('Password too short', 'error', 'local');
@@ -144,6 +151,9 @@ export class VaultDialog extends Component {
this._createVault();
} else if (this.state.changePassword) {
+ if (!this.newPassword) {
+ ToastEvent.show('You must fill all the fields.', 'error', 'local');
+ }
if (this.newPassword && this.newPassword.length < 3) {
ToastEvent.show('New password too short', 'error', 'local');
return;