Skip to content

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

fix: incorrect toast on restoring from trash

ammarahm-edfcb9a9123b7f
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.js
index 80334f817..b0452c9f9 100644
--- a/apps/mobile/src/components/ActionSheetComponent/index.js
+++ b/apps/mobile/src/components/ActionSheetComponent/index.js
@@ -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();