web: fix trial expired reminder dialog shown again and again

This commit is contained in:
Abdullah Atta
2024-08-16 18:10:35 +05:00
parent 487567ffbc
commit e4428299bc

View File

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