From e4428299bcaa04a034f0220cc9ddbcc266d67bb5 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Fri, 16 Aug 2024 18:10:35 +0500 Subject: [PATCH] web: fix trial expired reminder dialog shown again and again --- apps/web/src/dialogs/reminder-dialog.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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: {reminder.cta.title}, onClick: async () => { if (reminder.cta.action) await reminder.cta.action(); - + Config.set(reminderKey, true); props.onClose(true); } }}