fix: incorrect toast on restoring from trash

This commit is contained in:
ammarahm-ed
2020-12-31 19:51:31 +05:00
parent ed6b683d22
commit fcb9a9123b

View File

@@ -181,7 +181,7 @@ export const ActionSheetComponent = ({
} catch (e) {
console.log(e);
}
//close();
close();
},
},
{
@@ -228,7 +228,7 @@ export const ActionSheetComponent = ({
dispatch({type: Actions.FAVORITES});
eSendEvent(refreshNotesPage);
ToastEvent.show(
item.type === 'note' ? 'Note restored' : 'Notebook restored',
note.type === 'note' ? 'Note restored' : 'Notebook restored',
'success',
);
close();