Compare commits

...

1 Commits

Author SHA1 Message Date
ammarahm-ed
7de3072c36 mobile: fix crash when tap on notification and
reminder does not exist.
2023-04-15 23:35:14 +05:00

View File

@@ -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;