mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
refactoring & bug fixes
This commit is contained in:
@@ -346,14 +346,15 @@ export const ActionSheetComponent = ({
|
||||
.catch(async e => {
|
||||
switch (e.message) {
|
||||
case db.vault.ERRORS.noVault:
|
||||
close();
|
||||
openVault(note, false);
|
||||
close();
|
||||
break;
|
||||
case db.vault.ERRORS.vaultLocked:
|
||||
openVault(note, true, true);
|
||||
|
||||
close();
|
||||
break;
|
||||
case db.vault.ERRORS.wrongPassword:
|
||||
close();
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user