mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
mobile: fix crash when tap on notification and
reminder does not exist.
This commit is contained in:
@@ -104,6 +104,7 @@ const onEvent = async ({ type, detail }: Event) => {
|
||||
await db.notes?.init();
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user