close dialog

This commit is contained in:
ammarahm-ed
2020-12-31 21:33:37 +05:00
parent bdd14a862d
commit cdc1162499

View File

@@ -447,15 +447,11 @@ export const ActionSheetComponent = ({
db.vault
.add(note.id)
.then((r) => {
console.log(r);
close();
sendNoteEditedEvent(note.id, false, true);
localRefresh(note.type);
if (note.locked && PremiumService.get()) {
close();
}
})
.catch(async (e) => {
console.log(e);
switch (e.message) {
case db.vault.ERRORS.noVault:
close('novault');