Skip to content

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

fix: Toast not show on password entry

ammarahm-ed25d4044437f7
diff --git a/apps/mobile/src/components/VaultDialog/index.js b/apps/mobile/src/components/VaultDialog/index.js
index 32d7516c7..a5f1bffb7 100644
--- a/apps/mobile/src/components/VaultDialog/index.js
+++ b/apps/mobile/src/components/VaultDialog/index.js
@@ -178,7 +178,7 @@ export class VaultDialog extends Component {
this.setState({
loading: false,
});
- if (e === db.vault.ERRORS.wrongPassword) {
+ if (e.message === db.vault.ERRORS.wrongPassword) {
ToastEvent.show('Current password incorrect.', 'error', 'local');
}
});