mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix: incorrect toast on restoring from trash
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user