Skip to content

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

fix onNoteCreated not working

Ammar Ahmed7279089c30d2
diff --git a/apps/mobile/src/screens/notes/common.ts b/apps/mobile/src/screens/notes/common.ts
index 90220b806..08377f09d 100644
--- a/apps/mobile/src/screens/notes/common.ts
+++ b/apps/mobile/src/screens/notes/common.ts
@@ -63,7 +63,7 @@ export const setOnFirstSave = (
return;
}
//@ts-ignore
- editorState().onNoteCreated = onNoteCreated(id, data);
+ editorState().onNoteCreated = id => onNoteCreated(id, data);
};
export function isSynced(params: NotesScreenParams) {