Skip to content

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

fix: check if vault is unlocked before saving

thecodrr55d16d4672d1
diff --git a/packages/core/api/vault.js b/packages/core/api/vault.js
index c2a0f2cdb..0bcd59884 100644
--- a/packages/core/api/vault.js
+++ b/packages/core/api/vault.js
@@ -150,6 +150,7 @@ export default class Vault {
*/
async save(note) {
if (!note) return;
+ await this._check();
// roll over erase timer
this._startEraser();
return await this._lockNote(note, this._password);