Skip to content

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

mobile: catch errors

Ammar Ahmed22497199c512
diff --git a/apps/mobile/app/stores/index.ts b/apps/mobile/app/stores/index.ts
index e2f0218f7..895b798eb 100644
--- a/apps/mobile/app/stores/index.ts
+++ b/apps/mobile/app/stores/index.ts
@@ -126,7 +126,12 @@ export function initAfterSync(type: "full" | "send" = "send") {
Notifications.setupReminders(true);
NotePreviewWidget.updateNotes();
eSendEvent(eAfterSync);
- NotesnookModule.getAllShortcuts().then(syncShortcuts);
+
+ NotesnookModule.getAllShortcuts()
+ .then(syncShortcuts)
+ .catch((e) => {
+ DatabaseLogger.log(e);
+ });
}
export async function initialize() {}