Skip to content

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

mobile: fix crash when tap on notification and reminder does not exist.

ammarahm-ed7b6646230049
diff --git a/apps/mobile/app/services/notifications.ts b/apps/mobile/app/services/notifications.ts
index 2800f5136..c73d903f8 100644
--- a/apps/mobile/app/services/notifications.ts
+++ b/apps/mobile/app/services/notifications.ts
@@ -110,6 +110,7 @@ const onEvent = async ({ type, detail }: Event) => {
await initDatabase();
if (notification?.data?.type === "reminder") {
const reminder = db.reminders?.reminder(notification.id?.split("_")[0]);
+ if (!reminder) return;
await sleep(1000);
const ReminderNotify =
require("../components/sheets/reminder-notify").default;