Skip to content

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

web: fix trial expired reminder dialog shown again and again

Abdullah Attae4428299bcaa
diff --git a/apps/web/src/dialogs/reminder-dialog.tsx b/apps/web/src/dialogs/reminder-dialog.tsx
index 0736b79ce..66b35c3de 100644
--- a/apps/web/src/dialogs/reminder-dialog.tsx
+++ b/apps/web/src/dialogs/reminder-dialog.tsx
@@ -131,14 +131,17 @@ export const ReminderDialog = DialogManager.register(function ReminderDialog(
testId="reminder-dialog"
isOpen={true}
title={reminder.title}
- onClose={() => props.onClose(false)}
+ onClose={() => {
+ Config.set(reminderKey, true);
+ props.onClose(false);
+ }}
showCloseButton
description={reminder.description}
positiveButton={{
text: <Flex>{reminder.cta.title}</Flex>,
onClick: async () => {
if (reminder.cta.action) await reminder.cta.action();
-
+ Config.set(reminderKey, true);
props.onClose(true);
}
}}