Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Update CreateReminderForm.tsx

Daniel Hougaard0a5f6274f544
diff --git a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx
index dba9343015..d5f1e146c8 100644
--- a/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx
+++ b/frontend/src/pages/secret-manager/SecretDashboardPage/components/SecretListView/CreateReminderForm.tsx
@@ -88,12 +88,8 @@ export const CreateReminderForm = ({
}, [members, isOpen, recipients]);
useEffect(() => {
- if (repeatDays) {
- setValue("days", repeatDays);
- }
- if (note) {
- setValue("note", note);
- }
+ if (repeatDays) setValue("days", repeatDays);
+ if (note) setValue("note", note);
}, [repeatDays, note]);
return (