mobile: fix crash when tap on notification and

reminder does not exist.
This commit is contained in:
ammarahm-ed
2023-04-15 23:35:14 +05:00
parent 26657c7ee3
commit 7de3072c36

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;