refactoring & bug fixes

This commit is contained in:
ammarahm-ed
2020-03-15 09:27:10 +05:00
parent a2a6e645e7
commit 4381207dac
5 changed files with 11 additions and 19 deletions

View File

@@ -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;
}
});